我需要在通过ajax调用的url中添加一个参数。
我需要像这样的东西: jQuery(document).ajaxStart(functionThatAppendsParameterToUrl);
我认为你想使用ajaxSend而不是ajaxStart。你的函数将事件、请求和设置作为参数调用。如果我正确理解你想做什么,你应该能够修改设置以包含你的参数。
ajaxSend
ajaxStart
这里是解决方案
http://forum.jquery.com/topic/append-parameter-to-url-during-ajax-call-with-jquery
Massimo
我觉得可能是你使用了 type: "POST" 而不是 type: "GET"
type: "POST"
type: "GET"