摘要: 不多说直接上代码: export default{ data: { }, options:{ drawerbg:function(id){ let ctx = wx.createCanvasContext(id); wx.createSelectorQuery().select('#'+id).bo 阅读全文
posted @ 2020-07-04 16:55 十方故里 阅读(1135) 评论(0) 推荐(0)
摘要: <!doctype html> <html> <head> <meta charset="UTF-8"> <title>....</title> <style type="text/css"> .ui-pagination .jump, .ui-pagination .page, .ui-pagin 阅读全文
posted @ 2020-06-05 14:17 十方故里 阅读(1457) 评论(0) 推荐(0)
摘要: //节流 在规定时间内 只触发第一次 function throttle (fn,delay=1000) { var flag = 0; return function(){ var nowTime = Date.now(); if(nowTime-flag>delay){ fn.apply(thi 阅读全文
posted @ 2020-04-10 17:41 十方故里 阅读(227) 评论(0) 推荐(0)
摘要: var plugin = ['AMap.OverView','AMap.Scale','AMap.ToolBar'];//后面用到的插件要在这里添加才能用 var script = document.createElement('script'); script.type = 'text/javas 阅读全文
posted @ 2020-04-10 15:06 十方故里 阅读(199) 评论(0) 推荐(0)
摘要: 将本地仓库关联到远程仓库 方式一:远程仓库没有文件 step_one: git init(初始化git仓库); step_two: git remote add 地址(设置remote地址); step_three: git add . (将所有变更提交到本地仓库); step_four: git 阅读全文
posted @ 2020-04-08 14:09 十方故里 阅读(1123) 评论(0) 推荐(0)