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.
我有一个使用 python 的 CGI 并放置在服务器中。现在我有一个 URL 来调用该 CGI,在该 url 中我需要传递值以在数据库中更新。那么我如何使用 javascript 在该 url 中传递值。请帮我。
使用 jQuery 并进行调用$.ajax("http://yourhost/someMethod?someParameter=someValue"),但真正的解决方案取决于您的 URL 的预期格式、方法,即 GET 或 POST 等。
$.ajax("http://yourhost/someMethod?someParameter=someValue")