打赏

2020年9月12日

摘要: function debounce(fn, wait) { var timer = null; var self = this; var args = arguments; var count = 0; return function () { clearTimeout(timer); if (co 阅读全文
posted @ 2020-09-12 16:52 jlyuan 阅读(1407) 评论(0) 推荐(0) 编辑

2020年9月4日

摘要: 解决方案一:nginx代理转发 项目build后,通过nginx代理转发 location / { root D:\myproject\my-vue\dist; index index.html index.htm; } location /pyapi { proxy_pass 'http://lo 阅读全文
posted @ 2020-09-04 15:42 jlyuan 阅读(3103) 评论(0) 推荐(0) 编辑

2020年7月4日

摘要: 安装包 1. cnpm install gulp-concat gulp-uglify gulp-rename gulp-clean-css gulp-htmlmin-S 2. cnpm install gulp-livereload gulp-connect -S 代码目录结构 gulpfile. 阅读全文
posted @ 2020-07-04 14:46 jlyuan 阅读(226) 评论(0) 推荐(0) 编辑

2020年4月25日

摘要: 1.声明式表单验证: <Form.Item name="username" rules={[ { required: true, message: 'Please input your Username!', }, { max: 20, message: '最长20位!', }, { min: 5, 阅读全文
posted @ 2020-04-25 18:35 jlyuan 阅读(7457) 评论(1) 推荐(2) 编辑

2020年3月30日

摘要: 1. 页面结构 2. js代码 mui.plusReady(function() { var pages = ['home.html', 'h5plus.html', 'settings.html', 'email.html']; var pageStyles = { top: "0", botto 阅读全文
posted @ 2020-03-30 23:07 jlyuan 阅读(503) 评论(0) 推荐(0) 编辑

2020年3月21日

摘要: 1. git clone git@github.com:youzan/vant-weapp.git 拷贝代码 2. 将dist目录拷贝到小程序目录下,改名为vant 3. 使用 阅读全文
posted @ 2020-03-21 22:39 jlyuan 阅读(2428) 评论(0) 推荐(0) 编辑

2020年3月19日

摘要: 阅读全文
posted @ 2020-03-19 23:46 jlyuan 阅读(497) 评论(0) 推荐(0) 编辑
摘要: import { Loading } from 'element-ui'; Vue.prototype.Loading = ''; // 显示loading Vue.prototype.showLoading = function(){ Vue.prototype.Loading = Loading 阅读全文
posted @ 2020-03-19 23:04 jlyuan 阅读(786) 评论(0) 推荐(0) 编辑

2020年3月15日

摘要: 1.el-form 表单 校验 需要 绑定model,否则,使用校验this.$refs.loginForm.validate有问题 阅读全文
posted @ 2020-03-15 16:48 jlyuan 阅读(97) 评论(0) 推荐(0) 编辑

2020年1月12日

摘要: fastclick 原理: 在检测到touchend事件的时候,会通过DOM自定义事件立即出发模拟一个click事件,并把浏览器在300ms之后真正的click事件阻止掉 // 安装 cnpm install fastclick -S // 使用 import fastclick from 'fas 阅读全文
posted @ 2020-01-12 21:45 jlyuan 阅读(215) 评论(0) 推荐(0) 编辑

导航