myfunctionport.wxs
文件中的的问题
var functionList ={
setPostOrderID:function(value)
{
var app = getApp();//为什么行代码提示有问题
//全局变量app.globalData.getGloblePostID
console.log(app.globalData.getGloblePostID);
console.log("Here you are!!!");
app.globalData.getGloblePostID=value;
console.log(app.globalData.getGloblePostID+"OK");
return value;
},
}
// 导出对外暴露的属性
module.exports = {
setPostOrderID:functionList.setPostOrderID,
};