问题
How can I call a CGI function within a javascript function? Such like this:
function jsFun()
{
//something that can call a CGI function
}
回答1:
Try jQuery.
function jsFun() {
$.post(YOUR_CGI_URL, YOUR_PARAMS);
}
来源:https://stackoverflow.com/questions/6826888/how-can-i-call-a-cgi-function-within-a-javascript-function