NPM 发布 需要提前申请NPM的token,在secrets中新建NPM_TOKEN 会在推送到master分支的时候自动触发 name: publish to npm on: push: branche ...
NPM 发布 需要提前申请NPM的token,在secrets中新建NPM_TOKEN 会在推送到master分支的时候自动触发 name: publish to npm on: push: branche ...
项目中需要对正在编辑的页面做监测是否退出页面,退出则弹出提示,本身使用了 react-route,无奈 ui 不满足自定义的样式(嫌丑)所以通过自定义方案,做了一个新的版本 当然还是通过[https://medium.com/@michaelchan_13570/using-react-router-v4-prompt-with-custom-modal-component-ca839f5f ...
Array.prototype.duplicate=function() { let tmp = []; this.concat().sort().sort(function(a,b){ if(a==b && tmp.indexOf(a) === -1) tmp.push(a); }); return tmp; } ` ...