雪白汽车

文章
7
资源
0
加入时间
3年1月29天

小程序的生命周期和页面的生命周期

在小程序中,通过App()来注册一个小程序,通过Page()来注册一个页面1. 小程序的生命周期 App.jsApp({ onLaunch: function () { console.log('App onLaunch'); }, onShow:function (){ console.log('App onShow'); }, ...

js 数组和类数组的区别https://www.cnblogs.com/jiayeyuan/p/10886568.html

 类数组定义  1)拥有length属性,其它属性(索引)为非负整数(对象中的索引会被当做字符串来处理);2)不具有数组所具有的方法;  javascript中常见的类数组有arguments对象和 DOM方法的返回结果。比如document.getElementsByTagName()。类数组转换为数组args = Array.prototype.slice.ca...