【发布时间】:2015-09-30 08:27:32
【问题描述】:
在我的 Symfony2 项目中,我在事件监听器中使用路由。在我的桌面上一切正常,但在 Android 设备上却不行。如何让我的代码也适用于 Android?
我的代码来了:
$('.my-links a').click(function (e) {
e.preventDefault();
var setActive = {
user: $(this).data('user')
};
console.log('on android code gets processed only until here, but not beyond');
$.get(Routing.generate('_my_route', setActive, true)).success(function () {
window.location = '{{ url('_some_other_route') }}';
})
})
【问题讨论】:
标签: javascript symfony url-routing