12 2018 档案

匹配url 添加为a标签
摘要:var reg = /(http:\/\/|https:\/\/)((\w|=|\?|\.|\/|&|-)+)/g; if(str.indexOf('<a href=') 1){ // 过滤下a标签 str= str.replace(reg, "<a href='$1$2'>$1$2</a>"); 阅读全文
posted @ 2018-12-06 17:45 花谢 阅读(545) 评论(0) 推荐(0)
记一下vue项目中资源上传七牛云
摘要:首先使用npm安装 npm install qiniu-js 引入 import * as qiniu from 'qiniu-js' let subscription=‘’ 直接上代码 Preview(event){ let that=this let file = event.target.fi 阅读全文
posted @ 2018-12-05 16:28 花谢 阅读(2589) 评论(0) 推荐(0)