很简单的使用方法哦,不是吗?var response = MyClass.saveText(myText);
if (response == "ok") {
--- code here ---
}
如果你想异步调用,可以使用下面这种语法形式:var response = MyClass.myMethod(myArgs);
if (response >= 2) {
--- code here ---
}
DynAjax 推荐采用这种异步方式。MyClass.myMethod(myArgs, function(response) {
if (response >= 2) {
--- code here ---
}
});
新闻热点
疑难解答
图片精选