2020.6.10

1 将固定的配置文件作为模块存放在STATIC/PUBLIC文件夹下(使用JS会被编译)

(1)声明:xx.js
export default [{
  inner: 'penbasicinfo',
  outer: 'PENCommonInfo'
}]
(2)引入:import mapping from '../../../public/component-mapping'
(3)赋值:allcomponents: mapping
2 验证时间格式的正则表达式
2020/03/02 03:33:22
^((\d{2}(([02468][048])|([13579][26]))[\/\/\s]?((((0?[13578])|(1[02]))[\/\/\s]?((0?[1-9])|([1-2][0-9])|(3[01])))|(((0?[469])|(11))[\/\/\s]?((0?[1-9])|([1-2][0-9])|(30)))|(0?2[\/\/\s]?((0?[1-9])|([1-2][0-9])))))|(\d{2}(([02468][1235679])|([13579][01345789]))[\/\/\s]?((((0?[13578])|(1[02]))[\/\/\s]?((0?[1-9])|([1-2][0-9])|(3[01])))|(((0?[469])|(11))[\/\/\s]?((0?[1-9])|([1-2][0-9])|(30)))|(0?2[\/\/\s]?((0?[1-9])|(1[0-9])|(2[0-8]))))))(\s(((0?[1-9])|(1[0-2]))\:([0-5][0-9])((\s)|(\:([0-5][0-9])))))$
 3image-webpack-plugin安装失败解决办法 npm install -g windows-build-tools 
4 node --inspect-brk ./node_modules/webpack/bin/webpack.js --inline --progress  //node开启调试模式
5vue-cli 3.X webpack配置( 主要实现 resolve.alias的配置) https://blog.csdn.net/bowen11233/article/details/90268016
6vue监听资源是否全部下载完成vue  yekong  2个月前 (01-29)  161℃
var timer = setInterval(function () {
    // 判断文档和所有子资源(图片、音视频等)已完成加载
    if (document.readyState === 'complete') {
       that.loadall = true
    }
}, 500)
7
JS判断单、多张图片加载完成
8 https://cloud.tencent.com/developer/article/1653867
input输入中文时,拼音触发input事件
posted on 2020-06-10 17:08  zhangxiao233  阅读(84)  评论(0编辑  收藏  举报