JAXA去调用AjaxPro的方法,注意参数的类型,比如
[AjaxPro.AjaxMethod]
public string Delete(string ids)
{
string msg = string.Empty;
if (AdminBll.Delete(ids))
{
msg = "ok";
}
else
{
msg = "error";
}
return msg;
}
Javascript如果调用是这样的
<script> Delete(1); </script>
会出错,
正确调用为
<script> Delete(‘1’); </script>
浙公网安备 33010602011771号