uni-app 在支持完整 Vue 实例的生命周期上,同时还新增 应用生命周期 及 页面生命周期。
详见Vue官方文档:生命周期钩子。...2、事件修饰符
.stop:各平台均支持, 使用时会阻止事件冒泡,在非 H5 端同时也会阻止事件的默认行为
.prevent 仅在 H5 平台支持
.self:仅在 H5 平台支持
.once:...仅在 H5 平台支持
.capture:仅在 H5 平台支持
.passive:仅在 H5 平台支持
3、若需要禁止蒙版下的页面滚动,可使用 @touchmove.stop.prevent="moveHandle...a, canvas, cell, content, countdown, datepicker, div, element, embed, header, image, img, indicator,...2、如何捕获 app 的 onError
由于 onError 并不是完整意义的生命周期,所以只提供一个捕获错误的方法,在 app 的根组件上添加名为 onError 的回调函数即可。