后台:string r1 = "cd('xxx')";
return r1;
前端:
function cs() {
$.ajax({
type:"get",
url: "http://localhost:10993/Home/cs",/*url写异域的请求地址*/
dataType:"jsonp",/*加上datatype*/
success:function(){
}
});
}
function cd(a) {
alert(a)
}