上一页 1 ··· 7 8 9 10 11 12 下一页
摘要: <view class="roll" style=" opacity:{{headshow}};"> <view class="title"> 好货到家 </view> </view>data{ headshow: 0 } onPageScroll: function (e) { let opaci 阅读全文
posted @ 2020-08-31 17:46 web格调 阅读(1301) 评论(0) 推荐(0)
摘要: 微信小程序版本 使用 scroll-view 使用函数 wxml<view class="special"> <scroll-view scroll-x="true" bindscroll="bindscroll"> <view class="option flex"> <block wx:for= 阅读全文
posted @ 2020-08-31 17:42 web格调 阅读(876) 评论(2) 推荐(0)
摘要: 1、查看是否安装 vue脚手架 vue -V 看是否显示 不显示的情况下 npm install @vue/cli -g (2)vue create 项目名称 创建项目 webpack vue init webpack 项目名称 (3)选择自定义配置 Manually select featurs 阅读全文
posted @ 2020-08-26 16:45 web格调 阅读(170) 评论(0) 推荐(0)
摘要: ref 被用来给DOM元素或子组件注册引用信息。引用信息会根据父组件的 $refs 对象进行注册。如果在普通的DOM元素上使用,引用信息就是元素; 如果用在子组件上,引用信息就是组件实例 详解:https://blog.csdn.net/weixin_41646716/article/details 阅读全文
posted @ 2020-08-24 08:57 web格调 阅读(310) 评论(0) 推荐(0)
摘要: 生命周期 A beforeCreate 创建前 生命周期 B created 创建完成 生命周期 C beforeMount 挂载前 生命周期 D mounted 挂载完成 生命周期 E beforeUpdata 即将更新渲染 生命周期 F updated 更新完成 生命周期 G beforeDes 阅读全文
posted @ 2020-08-21 17:45 web格调 阅读(205) 评论(0) 推荐(0)
摘要: navigator 标签 类似于a标签跳转 url:"跳转页面路径" @tap 事件跳转 @tap="事件名称" 事件名称(){ tabbar页面跳转 参考路由跳转 uni.switchTab({ url: "/pages/classify/classify")} } 阅读全文
posted @ 2020-07-29 10:24 web格调 阅读(9123) 评论(0) 推荐(0)
摘要: uni.navigateBack 可以返回到原页面 uni.redirectTo 关闭当前页面,跳转到应用内的某个页面 uni.reLaunch 关闭所有页面,打开到应用内的某个页面 uni.switchTab 跳转到 tabBar 页面,并关闭其他所有非 tabBar 页面 uni.navigat 阅读全文
posted @ 2020-07-29 10:09 web格调 阅读(675) 评论(0) 推荐(0)
摘要: click: 'tap', 点击事件 touchstart: 'touchstart', 触摸事件 touchmove: 'touchmove', 触摸滑动 touchcancel: 'touchcancel', 触摸被取消 touchend: 'touchend', 触摸结束 tap: 'tap' 阅读全文
posted @ 2020-07-24 09:23 web格调 阅读(3270) 评论(0) 推荐(0)
摘要: 条件编译是用特殊的注释作为标记,在编译时根据这些特殊的注释,将注释里面的代码编译到不同平台。 写法:以 #ifdef 或 #ifndef 加 %PLATFORM% 开头,以 #endif 结尾。 #ifdef:if defined 仅在某平台存在 #ifndef:if not defined 除了某 阅读全文
posted @ 2020-07-23 10:51 web格调 阅读(840) 评论(0) 推荐(0)
摘要: js页面//创建节点选择器 var query = wx.createSelectorQuery(); //选择id var that = this; query.select('.every').boundingClientRect(function (rect) { // console.log 阅读全文
posted @ 2020-07-14 17:59 web格调 阅读(2599) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 下一页