cfeteam / weapp-session-client Goto Github PK
View Code? Open in Web Editor NEW微信小程序会话管理 - 客户端
License: Other
微信小程序会话管理 - 客户端
License: Other
在客户端,request函数没有执行结果,不会访问链接地址
运行环境:微信web开发者工具 v0.11.112200
操作:点击“进入画廊”后报错。
WAService.js:3 TypeError: Promise is not a constructor
at co (co.js:50)
at createPromise (co.js:30)
at requestWithSession (session-request.js:102)
at e.loadPaints (list.js:26)
at e.onShow (list.js:20)
at e.r (WAService.js:3)
at g (WAService.js:2)
at w (WAService.js:2)
at . (WAService.js:3)
at WAService.js:3
我服务器部署成功了,方便提供一个能跑起来的demo吗?
开启ES6转ES5的情况下,会报WAService.js:3 Uncaught ReferenceError: regeneratorRuntime is not defined,如果关闭ES6转ES5,在使用request的时候有TypeError: Promise is not a constructor,开发环境是window操作系统
猜测是真机无法执行Promise,而用模拟器开启ES6转ES5又会报错regeneratorRuntime is not defined,本人又看不懂ES6,所以陷入江局
整套流程在用户允许授权时可通,但是在用户拒绝授权后co.js会报"getUserInfo:fail auth deny"
的错误
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.