上一页 1 2 3 4 5 6 ··· 13 下一页
摘要: <div id="map" style="position: relative; width: 5.95rem; height: 5rem; padding: 0px; margin: 0px; border-width: 0px; cursor: default;"></div> // impor 阅读全文
posted @ 2021-08-12 17:10 菜鸟程序员的总结 阅读(2344) 评论(0) 推荐(0)
摘要: 1、vscode安装插件 npm install cssrem -S 2、设置根字体大小,在设置中用设计稿的宽度除以10,因为flexble.js把屏幕分为10份 3、书写的时候直接输入设计稿的px单位就会自动换算成rem 4、最重要的是引入flexble.js 阅读全文
posted @ 2021-08-09 16:25 菜鸟程序员的总结 阅读(188) 评论(0) 推荐(0)
摘要: 查了好多资料,没想到钉钉自己也有对应的js-sdk,和微信不同的是,这个不需要微信的一些繁琐的秘钥什么的,这个很简单,如下配置:1.引入该外部js文件 <script type="text/javascript" src="https://g.alicdn.com/dingding/open-dev 阅读全文
posted @ 2021-07-30 11:58 菜鸟程序员的总结 阅读(758) 评论(0) 推荐(0)
摘要: <!doctype html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="initial-scal 阅读全文
posted @ 2021-03-13 10:49 菜鸟程序员的总结 阅读(1141) 评论(0) 推荐(0)
摘要: 先上图 <canvas id="canvas" width="1400" height="800" style="background:white;"><canvas> var arr = [{ NO: 0, name: "p0", x: 854, y: 96 }, { NO: 1, name: " 阅读全文
posted @ 2021-03-06 09:42 菜鸟程序员的总结 阅读(1763) 评论(0) 推荐(0)
摘要: 示例图html: <div id="main" class="map"></div> js: import echarts from "echarts"; import mapJson from "../../assets/beijing_haidian.json"; let _this = thi 阅读全文
posted @ 2021-01-27 09:26 菜鸟程序员的总结 阅读(3228) 评论(0) 推荐(0)
摘要: 获取当前时间 function frontOneHour(fmt) { var currentTime = new Date(new Date().getTime()) // console.log(currentTime) // Wed Jun 20 2018 16:12:12 GMT+0800 阅读全文
posted @ 2020-12-17 16:44 菜鸟程序员的总结 阅读(1882) 评论(0) 推荐(0)
摘要: /** * Object.create()方法可以传两个参数,第一个是原型对象,第二个是自身属性(是一个可描述的对象) value configurable writable emumerable * * */ let obj=Object.create({a:1},{ b:{ value:1 }, 阅读全文
posted @ 2020-12-11 20:07 菜鸟程序员的总结 阅读(1523) 评论(0) 推荐(0)
摘要: <script src="http://www.itxst.com/package/sortable/Sortable.min.js"></script> <script src="http://www.itxst.com/package/vuedraggable/vuedraggable.umd. 阅读全文
posted @ 2020-12-01 20:53 菜鸟程序员的总结 阅读(1336) 评论(0) 推荐(0)
摘要: 页面初始化的时候生命周期函数执行顺序是 componentWillMount('组件将要挂载到页面时刻') >render('组件正在被渲染'时刻) >componentDidMount('组件挂载完成时刻') 页面组件更新时候生命周期函数执行顺序是 shouldComponentWillUpdat 阅读全文
posted @ 2020-11-30 11:09 菜鸟程序员的总结 阅读(185) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 13 下一页