unmagic / lightning-load-project Goto Github PK
View Code? Open in Web Editor NEW小程序页面预加载框架
Home Page: https://blog.csdn.net/sinat_27612147/article/details/80802725
License: MIT License
小程序页面预加载框架
Home Page: https://blog.csdn.net/sinat_27612147/article/details/80802725
License: MIT License
在页面的json文件,引用
{
"usingComponents": {
}
}
只要设置了这个,就立马不能往下执行了
super.onLoad()报错
VM93:1 页面【pages/index/index]错误:
Error: module "pages/index/index.js" is not defined
at require (VM99 WAService.js:22)
at :30:9
at doWhenAllScriptLoaded (appservice?t=1600852596794:1285)
at HTMLScriptElement.scriptLoaded (appservice?t=1600852596794:1305)
at HTMLScriptElement.script.onload (appservice?t=1600852596794:1313)
console.error @ VM93:1
(anonymous) @ VM111:33
doWhenAllScriptLoaded @ appservice?t=1600852596794:1285
scriptLoaded @ appservice?t=1600852596794:1305
script.onload @ appservice?t=1600852596794:1313
load (async)
(anonymous) @ appservice?t=1600852596794:1312
(anonymous) @ appservice?t=1600852596794:1323
VM111:34 Uncaught Error: module "pages/index/index.js" is not defined
at require (VM99 WAService.js:22)
at :30:9
at doWhenAllScriptLoaded (appservice?t=1600852596794:1285)
at HTMLScriptElement.scriptLoaded (appservice?t=1600852596794:1305)
at HTMLScriptElement.script.onload (appservice?t=1600852596794:1313)
require @ VM99 WAService.js:22
(anonymous) @ VM111:30
doWhenAllScriptLoaded @ appservice?t=1600852596794:1285
scriptLoaded @ appservice?t=1600852596794:1305
script.onload @ appservice?t=1600852596794:1313
load (async)
(anonymous) @ appservice?t=1600852596794:1312
(anonymous) @ appservice?t=1600852596794:1323
[sitemap 索引情况提示] 根据 sitemap 的规则[0],当前页面 [pages/index/index] 将被索引
commonPage是不是应该继承Page的基础方法,否则无法调用
直接下载下来,第二个页面的onLoad都不执行,
/**
* 生命周期函数--监听页面加载
*/
onLoad=function(options) {
console.log(11111)
};
需要改成这样才执行
第一个 onLoad生命周期函数不执行
super 父类静态方法 super.onLoad(options); 怎么修改这个方法?
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.