上一页 1 2 3 4 5 6 7 ··· 13 下一页
摘要: <script src="https://webapi.amap.com/maps?v=1.4.15&key=自己申请的应用的key"></script> mapObj = new AMap.Map('container'); mapObj.plugin('AMap.Geolocation', fu 阅读全文
posted @ 2020-11-26 09:02 菜鸟程序员的总结 阅读(2116) 评论(0) 推荐(0) 编辑
摘要: 在webpack.prod.config.js 里面使用 webpack.DefinePlugin挂载到process.env上边 Date.prototype.Format = function (fmt) { // author: meizz var o = { "M+": this.getMo 阅读全文
posted @ 2020-11-23 10:36 菜鸟程序员的总结 阅读(2845) 评论(0) 推荐(0) 编辑
摘要: router 下面的index.js ,只需要删除之前的import引入的vur-router,用 new VueRouter()使用路由就行 main.js 根目录下面的 index.html 阅读全文
posted @ 2020-11-21 14:39 菜鸟程序员的总结 阅读(2937) 评论(0) 推荐(0) 编辑
摘要: len = infodata.length; if (len < 5) { for (var i = 0; i < len; i++) { } } else { var html,ids=[]; for (var i = 0; i < 5; i++) { var l = parseInt(Math. 阅读全文
posted @ 2020-11-19 14:22 菜鸟程序员的总结 阅读(1009) 评论(0) 推荐(0) 编辑
摘要: var audio = new Audio('mp3/music.mp3'); audio.onloadedmetadata = function(){ } var loadImg = new Image(); loadImg.onload = function(){} loadImg.src = 阅读全文
posted @ 2020-11-16 15:15 菜鸟程序员的总结 阅读(830) 评论(0) 推荐(0) 编辑
摘要: //后台提供的接口返回必须的四个参数 signature 签名,appid,nonceStr 生成签名的随机串timestamp,时间戳 //后台提供的接口request('api.php?op=weixinshare', params).then((res) => { var data = res 阅读全文
posted @ 2020-11-14 09:38 菜鸟程序员的总结 阅读(390) 评论(0) 推荐(0) 编辑
摘要: jsonp htpp proxy代理 iframe document.domain postMessage websocket ngix 反向代理 cors 跨域资源共享 阅读全文
posted @ 2020-10-21 15:24 菜鸟程序员的总结 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 通常事件委托获取点击元素的索引需要进行循环比对来得到,这样比较麻烦,也比较耗费性能,但是通过数组原型上的indexOf可以大大提高该操作的性能,示例如下: <div> <ul> <li>1</li> <li>2</li> <li>3</li> </ul> </div> var oUl=documen 阅读全文
posted @ 2020-09-22 09:38 菜鸟程序员的总结 阅读(1541) 评论(0) 推荐(0) 编辑
摘要: 关于Object.difineProperty的用法很简单,就是传三个参数(对象,属性,一些可配置的属性) Object.difineProperty(obj,prop,descriptor) function defineproperty(){ var _obj={} Object.defineP 阅读全文
posted @ 2020-09-05 14:53 菜鸟程序员的总结 阅读(299) 评论(0) 推荐(0) 编辑
摘要: var p={ age:20};function Person(name,sex){ console.log(this); console.log(this.age); console.log(name,sex)}Function.prototype.bindy=function(context){ 阅读全文
posted @ 2020-09-03 17:15 菜鸟程序员的总结 阅读(390) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 13 下一页