- 如何在小程序内退出自己的小程序?
项目有个需求,用户便捷付款完成后自动退出小程序。没什么值得逗留。 但苦于找不到退出自己小程序的方法,请求大家告知。
2017-02-17 - 小程序xml2json类库window.ActiveXObject错误
使用外库 https://github.com/abdmob/x2js 解析xml2json. 在web端正常,移植到小程序就报错了。错误如下: thirdScriptError Cannot read property 'ActiveXObject' of undefined;at api getLocation success callback function TypeError: Cannot read property 'ActiveXObject' of undefined at Object.parseXmlString (http://1074917368.appservice.open.weixin.qq.com/utils/xml2json.js:425:27) at Object.xml_str2json (http://1074917368.appservice.open.weixin.qq.com/utils/xml2json.js:481:22) at Object.SearchParkInfo (http://1074917368.appservice.open.weixin.qq.com/app.js:31:36) at Function.success (http://1074917368.appservice.open.weixin.qq.com/app.js:44:17) at Object.success (http://1074917368.appservice.open.weixin.qq.com/WAService.js:3:6898) at http://1074917368.appservice.open.weixin.qq.com/WAService.js:4:8110 at Object.u [as 0.16555421337887521] (http://1074917368.appservice.open.weixin.qq.com/asdebug.js:1:14219) at i (http://1074917368.appservice.open.weixin.qq.com/asdebug.js:1:13547) at p (http://1074917368.appservice.open.weixin.qq.com/asdebug.js:1:4336) at http://1074917368.appservice.open.weixin.qq.com/asdebug.js:1:5158 请问我该怎么解决啊?谢谢各位。
2017-01-11