04 2022 档案

摘要:一、准备工作 1.准备npm 账号 2.写好的组件 二、上传组件 1.在写好的组件目录下 shift + 鼠标右键 ,打开 windows powerShell 窗口 2. npm init 创建,是否创建 y 执行完上面操作后将会生成 package.json 这个文件 3.因为我的组件是仅供内部 阅读全文
posted @ 2022-04-14 16:59 。啊月 阅读(667) 评论(0) 推荐(0) 编辑
摘要:苹果手机获取手机电量和充电状态 var UIDevice = plus.ios.import('UIDevice') var dev = UIDevice.currentDevice() if (!dev.isBatteryMonitoringEnabled()) { dev.setBatteryM 阅读全文
posted @ 2022-04-12 14:32 。啊月 阅读(1365) 评论(0) 推荐(0) 编辑
摘要:1. 如果要要使用中国地图,必须使用china.js。可以去其它官方地方下载,我的这个js改了点 /* eslint-disable no-undef */ (function(root, factory) { if (typeof define 'function' && define.amd) 阅读全文
posted @ 2022-04-11 15:12 。啊月 阅读(383) 评论(0) 推荐(0) 编辑
摘要:1. 引用高德的js <script type="text/javascript" src="https://webapi.amap.com/maps?v=2.0&key=945bxxxxxxxe5432f&&plugin=AMap.Geocoder,AMap.AutoComplete,AMap.P 阅读全文
posted @ 2022-04-11 14:41 。啊月 阅读(833) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示