当我尝试使用模块请求时,forge.request.ajax 返回错误,代码如下:
$(document).on("pagecreate", "#add_menu", function () {
forge.logging.info("page created");
});
$(document).on('click', '#scanQRCode', function () {
forge.logging.info("clickss");
forge.request.ajax({
type: "POST",
url: getLink(),
data:'data',
success: function (data) {
forge.logging.info("ok");
},
error: function (error) {
forge.logging.error("[getresponse ] " + JSON.stringify(error));
}
});
});
本地工具包上的错误:
TypeError: Result of expression 'e' [null] is not an object. -- From line 2 of content://io.trigger.forge1e218252567411e3a2d612313b0234c0/forge/all.js