上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 18 下一页
摘要: 1,全局前置守卫:beforeEach const router =new Router({……}); router.beforeEach((to, from, next) => { }); 2,全局后置守卫:afterEach 3,路由独享的钩子函数(路由守卫):beforeEnter 在配置路由 阅读全文
posted @ 2021-09-16 23:21 shuihanxiao 阅读(2957) 评论(0) 推荐(0)
摘要: https://www.aconvert.com/cn/document/doc-to-html/ 阅读全文
posted @ 2021-08-11 22:19 shuihanxiao 阅读(33) 评论(0) 推荐(0)
摘要: js下载本地文件 //下载本地资源文件 downPager(url, filename) { // return fetch(url).then(res => res.blob().then(blob => { // let a = document.createElement('a'); // l 阅读全文
posted @ 2021-08-09 15:24 shuihanxiao 阅读(2357) 评论(0) 推荐(0)
摘要: 安装 npm install video.js main.js中引入 import Video from 'video.js' import 'video.js/dist/video-js.css' Vue.prototype.$video = Videojs export default { na 阅读全文
posted @ 2021-08-04 19:30 shuihanxiao 阅读(2377) 评论(0) 推荐(0)
摘要: 使用上一篇文件的cropper插件引入后 wxml <import src="../we/we-cropper.wxml"/> <view class="cropper-wrapper"> <template is="we-cropper" data="{{...cropperOpt}}"/> </ 阅读全文
posted @ 2021-08-02 19:45 shuihanxiao 阅读(127) 评论(0) 推荐(0)
摘要: js import WeCropper from './we/we-cropper.js'; const device = wx.getSystemInfoSync() // 获取设备信息 const width = device.windowWidth // 示例为一个与屏幕等宽的正方形裁剪框 c 阅读全文
posted @ 2021-08-02 19:42 shuihanxiao 阅读(436) 评论(0) 推荐(0)
摘要: isVehicleNumber(vehicleNumber) { var result = false if (vehicleNumber.length == 8) { var express = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1} 阅读全文
posted @ 2021-07-23 12:20 shuihanxiao 阅读(348) 评论(0) 推荐(0)
摘要: <view class="gender-box"> <radio-group class="radio-group" bindchange="radioChange" > <view class="gender-con gender-con-border"> <view class="gender- 阅读全文
posted @ 2021-07-23 12:17 shuihanxiao 阅读(254) 评论(0) 推荐(0)
摘要: 日期选择 <picker class="date=='选择生日'?'placeName':'placeText'" mode="date" value="{{date}}" start="2015-09-01" end="{{dateEnd}}" bindchange="bindDateChange 阅读全文
posted @ 2021-07-23 12:13 shuihanxiao 阅读(212) 评论(0) 推荐(0)
摘要: wml <view class="photoCon" bindtap='uploader'> <view class="phontoBox"> <view class="phontoBox-img"> <image src="{{headImg}}" class="slide-image" mode 阅读全文
posted @ 2021-07-23 12:09 shuihanxiao 阅读(587) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 18 下一页