Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在这个获取 json 请求中添加一个额外的变量,如new_var=2 。经过多次努力。我无法做到。请帮助
jQuery.getJSON(serverFQDN + '/widget_submit.php?callback=?', { install_url: window.location.href }, serverResponse);
为什么不能在发送数据对象中添加额外的参数?
jQuery.getJSON(serverFQDN + '/widget_submit.php?callback=?', { install_url: window.location.href, new_var:2 }, serverResponse);