11 2020 档案

摘要:页面初始化的时候生命周期函数执行顺序是 componentWillMount('组件将要挂载到页面时刻') >render('组件正在被渲染'时刻) >componentDidMount('组件挂载完成时刻') 页面组件更新时候生命周期函数执行顺序是 shouldComponentWillUpdat 阅读全文
posted @ 2020-11-30 11:09 菜鸟程序员的总结 阅读(181) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <title>前端播放m3u8格式视频</title> <link href="https://vjs.zencdn.net/7.4.1/video-js.css" r 阅读全文
posted @ 2020-11-30 09:39 菜鸟程序员的总结 阅读(10697) 评论(0) 推荐(0) 编辑
摘要:<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 菜鸟程序员的总结 阅读(2216) 评论(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 菜鸟程序员的总结 阅读(2917) 评论(0) 推荐(0) 编辑
摘要:router 下面的index.js ,只需要删除之前的import引入的vur-router,用 new VueRouter()使用路由就行 main.js 根目录下面的 index.html 阅读全文
posted @ 2020-11-21 14:39 菜鸟程序员的总结 阅读(3002) 评论(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 菜鸟程序员的总结 阅读(1028) 评论(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 菜鸟程序员的总结 阅读(872) 评论(0) 推荐(0) 编辑
摘要://后台提供的接口返回必须的四个参数 signature 签名,appid,nonceStr 生成签名的随机串timestamp,时间戳 //后台提供的接口request('api.php?op=weixinshare', params).then((res) => { var data = res 阅读全文
posted @ 2020-11-14 09:38 菜鸟程序员的总结 阅读(400) 评论(0) 推荐(0) 编辑

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