jq post
var source=[];
$.ajax({
type: "post",
url: "connectdb/select.jsp",
data: {database: "scmdb", selectsql: sql},
async: false, method: 'post',
dataType: "text",
success: function(data) {
eval("source="+data+";");
//source=eval(data);
alert("正确");
},
error: function(err) {
alert("错误");
}
});
return source;