我有一些数据表通过帕拉姆,我想帕拉姆ID 194出来的URL的我怎样才能在URL中的JavaScript
admin/customer-management/updater/id/194
我的Ajax:
"sAjaxSource": "/<?= Zend_Registry::get('Zend_Locale')->getLanguage(); ?>/admin/CustomerManagement/getlistcontactsajax/idCustomer/" + $(this).attr('value');
我这样做+ $(this).attr('value');
但它不起作用。
你想要得到的来自URL的'id'? – Noman
你需要重写你的问题。什么是$(这)?即什么事件你访问attr(“价值”),这可能是真正的jQuery中的.val()和它与URL有什么关系?你的意思是'location.href.split(“/”)。pop()' – mplungjan
''admin/customer-management/updater/id/194“.split(”/“)。pop()' – lshettyl