11 2020 档案
摘要:页面初始化的时候生命周期函数执行顺序是 componentWillMount('组件将要挂载到页面时刻') >render('组件正在被渲染'时刻) >componentDidMount('组件挂载完成时刻') 页面组件更新时候生命周期函数执行顺序是 shouldComponentWillUpdat
阅读全文
摘要:<!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
阅读全文
摘要:<script src="https://webapi.amap.com/maps?v=1.4.15&key=自己申请的应用的key"></script> mapObj = new AMap.Map('container'); mapObj.plugin('AMap.Geolocation', fu
阅读全文
摘要:在webpack.prod.config.js 里面使用 webpack.DefinePlugin挂载到process.env上边 Date.prototype.Format = function (fmt) { // author: meizz var o = { "M+": this.getMo
阅读全文
摘要:router 下面的index.js ,只需要删除之前的import引入的vur-router,用 new VueRouter()使用路由就行 main.js 根目录下面的 index.html
阅读全文
摘要: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.
阅读全文
摘要:var audio = new Audio('mp3/music.mp3'); audio.onloadedmetadata = function(){ } var loadImg = new Image(); loadImg.onload = function(){} loadImg.src =
阅读全文
摘要://后台提供的接口返回必须的四个参数 signature 签名,appid,nonceStr 生成签名的随机串timestamp,时间戳 //后台提供的接口request('api.php?op=weixinshare', params).then((res) => { var data = res
阅读全文