How can I call a CGI function within a javascript

2019-05-30 19:49发布

问题:

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);
}