会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
shuihanxiao
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
3
4
5
6
7
8
9
10
11
···
18
下一页
2021年9月16日
vue中实现页面的拦截、跳转、判断
摘要: 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)
2021年8月11日
doc转html
摘要: https://www.aconvert.com/cn/document/doc-to-html/
阅读全文
posted @ 2021-08-11 22:19 shuihanxiao
阅读(33)
评论(0)
推荐(0)
2021年8月9日
js 实现下载本地文件
摘要: 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)
2021年8月4日
vue 中使用video 使用视频/嵌入视频
摘要: 安装 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)
2021年8月2日
小程序裁剪
摘要: 使用上一篇文件的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)
2021年7月23日
车牌号正则
摘要: 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)
小程序单选框 radio
摘要: <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
下一页
公告