摘要:
$ git checkout -b feature origin/feature参考:https://www.jianshu.com/p/0fe715a7fbb3 阅读全文
摘要:
注册全局组件: directives.js function permissionBtns(el, binding) { let data = binding.value.data, prop = binding.value.prop, val = binding.value.val; if (da 阅读全文
摘要:
1.父组件共享数据给子组件: provide与inject是成对出现 父组件:共享 provide() { return { formData: this.formData } }, 子组件:接收 inject: ['formData'], 阅读全文
摘要:
// #ifdef MP-WEIXIN let custom = wx.getMenuButtonBoundingClientRect(); console.log("custom", custom); // #endif 阅读全文
摘要:
git rm -r --cached . #新增的忽略文件没有生效,是因为git是有缓存的,而之前的文件在缓存中,并不会清除掉,还会继续提交,所以更新.gitignore文件,要清除缓存文件 git add . git commit -m 'update .gitignore' git push o 阅读全文
摘要:
let str = "abccbaaaddccbbcc"; let str1 = 'a',str2 = 'b; // let reg = new RegExp(/(a|b)/,'g'); let reg = new RegExp(`(${str1}|${str2})`,'g'); let repSt 阅读全文
摘要:
choseImg() { let that = this; that.isCrossImg = true; uni.chooseImage({ count: that.count, sizeType: ['compressed', 'original'], sourceType: that.sour 阅读全文
摘要:
wxml: 效果: 阅读全文
摘要:
<!--div转成图片并下载--> <script src="./js/html2canvas.min.js"></script> <script> // edited from https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob#Polyfill var dataURIToBlob = functio 阅读全文
摘要:
转:https://blog.csdn.net/u012145252/article/details/80628451 环境系统:win7git版本: 2.16.2.windows.1 问题1、本地初始化了git仓库,放了一些文件进去并进行了add操作和commit提交操作; $git add -A 阅读全文