2020年6月4日
摘要: <div class="layui-inline" id=‘’ onclick="changeType(id)"> <label class="layui-form-label"></label> </div> function changeType(id){//id是通过绑定事件传过来的 var 阅读全文
posted @ 2020-06-04 13:51 uniapp 阅读(1870) 评论(0) 推荐(0) 编辑
  2020年4月21日
摘要: 网上的垃圾代码太多,最后翻了video.js的官方文档,就这么简单,浪费了我这么久,注:我这里使用的vue //html <video id="my-player" controls autoplay preload="auto" class="video-js vjs-big-play-cente 阅读全文
posted @ 2020-04-21 18:39 uniapp 阅读(7328) 评论(0) 推荐(1) 编辑
  2020年4月14日
摘要: 注意data数据里面一定要定义Timeout Timeout:Function,//定时器 methods里面 moseovefalse(){//需要执行的方法 var that=this; that.show=false; }, mouseomov(){//延迟二秒执行 var that=this 阅读全文
posted @ 2020-04-14 08:04 uniapp 阅读(1173) 评论(0) 推荐(0) 编辑
  2020年4月13日
摘要: <script src="http://pv.sohu.com/cityjson?ie=utf-8"></script> //methods里面 // 获取省份 ready:function(){ var that=this; //获取本地IP地址 var cname = returnCitySN[ 阅读全文
posted @ 2020-04-13 17:50 uniapp 阅读(3441) 评论(0) 推荐(0) 编辑
  2020年4月9日
摘要: //head里面的内容,我是采用cdn引用的方式,因为项目太小 <head> <meta charset="utf-8" /> <title>二级造价</title> <script src="https://cdn.bootcss.com/video.js/7.7.6/video.min.js"> 阅读全文
posted @ 2020-04-09 11:59 uniapp 阅读(4940) 评论(0) 推荐(0) 编辑
  2020年3月31日
摘要: methods: { //执行网络请求 run() { uni.request({ method: 'GET',//请求方式 url: ‘’//请求地址 }).then(res=>{ console.log(res); }) }, //这里是通过点击的方式触发的 click(){ setInterv 阅读全文
posted @ 2020-03-31 10:43 uniapp 阅读(8158) 评论(0) 推荐(0) 编辑
  2020年3月24日
摘要: onPageScroll(e){ console.log(e); } 阅读全文
posted @ 2020-03-24 08:33 uniapp 阅读(3509) 评论(0) 推荐(0) 编辑