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.
function myFunction(action, arguments){ $.get(action, arguments) } myFunction("link/to/mypage", { "idCustomer": "123", "junk": $.now })
预期连接:
link/to/mypage?idCustomer=123&junk=random
实际结果:
link/to/mypage
为什么是这样?我该如何解决?谢谢!
arguments是 JavaScript 中的保留字。将其更改为其他内容,然后重试!
arguments