会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
钟文锋
博客园
首页
新随笔
联系
订阅
管理
2023年5月21日
scoped样式穿透
摘要: scoped虽然避免了组件间样式污染,但是很多时候我们需要修改组件中的某个样式,但是又不想去除scoped属性 使用/deep/ <!-- Parent --> <template> <div class="wrap"> <Child /> </div> </template> <style lan
阅读全文
posted @ 2023-05-21 22:56 钟文锋
阅读(41)
评论(0)
推荐(0)
2023年2月24日
深拷贝
摘要: function deepClone(source){ var targetObj = Array.isArray(source) Array ? [] : {}; for(var keys in source){ if(source.hasOwnProperty(keys)){ if(source
阅读全文
posted @ 2023-02-24 10:46 钟文锋
阅读(14)
评论(0)
推荐(0)
2022年11月5日
解决vue socket 本地服务器跨域问题
摘要: <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
阅读全文
posted @ 2022-11-05 12:37 钟文锋
阅读(60)
评论(0)
推荐(0)
2022年6月14日
uniapp-canvas动态画图
摘要: r-canvas.js export default{ data(){ return{ system_info:{}, //system info canvas_width:0, //canvas width px canvas_height:0, //canvas height px ctx:nu
阅读全文
posted @ 2022-06-14 08:46 钟文锋
阅读(1279)
评论(0)
推荐(0)
2022年6月13日
axios封装
摘要: npm install axios --save 创建三个文件(index.js/interceptor.js/request.js) /** * index.js * api地址管理 */ export default { login:'/user/login', getInfo:'/user/g
阅读全文
posted @ 2022-06-13 12:22 钟文锋
阅读(3644)
评论(0)
推荐(0)
2022年4月8日
vue 安装 scss
摘要: SASS的安装使用:安装sass-loader node-sass 前者依赖于后者 sass-loader:把 sass编译成css;node-sass:nodejs环境中将sass转css。 npm install sass-loader --save-dev npm install node-s
阅读全文
posted @ 2022-04-08 12:06 钟文锋
阅读(1387)
评论(0)
推荐(0)
2020年8月29日
微信小程序真机调试echarts
摘要: 设置echart的属性:force-use-old-canvas="true" <ec-canvas id="xxx" canvas-id="xxx" ec="{{ ec }}" force-use-old-canvas="true"></ec-canvas> 注意事项: 这个错误针对真机调试,上线
阅读全文
posted @ 2020-08-29 12:16 钟文锋
阅读(1237)
评论(0)
推荐(0)
2018年1月8日
CSS3旋转
摘要: .spin{ -webkit-animation: fadespin 1.5s infinite linear; animation: fadespin 1.5s infinite linear; } @keyframes fadespin{ 0% { -webkit-transform: rotateY(0deg); transform:...
阅读全文
posted @ 2018-01-08 15:57 钟文锋
阅读(132)
评论(0)
推荐(0)
2017年12月27日
App内嵌H5页面联调接口
摘要: //分享接口 function ShareLp(query,pkid){ var shareUrl=""; var shareImg=""; var shareTll=""; var shareInfo=""; var u = navigator.userAgent; var isAndroid = u.indexOf('Android') > -1 || u.indexOf...
阅读全文
posted @ 2017-12-27 10:34 钟文锋
阅读(1598)
评论(0)
推荐(1)
2017年12月25日
forEach遍历Ajax Json数据
摘要: Jquery Ajax获取接口json数据 写好后打开浏览器访问,可以看到json数据,如图: 全选复制到json格式校验网站进行格式化 然后修改ajax里面的代码: 完成。
阅读全文
posted @ 2017-12-25 19:25 钟文锋
阅读(12860)
评论(0)
推荐(1)
下一页
公告