摘要:
1.下载 vuex 终端命令yarn add vuex -S 或者 npm i vuex -S 2.src目录下创建文件:store/index.js // 1.创建store/index.js 并导入 createStore 方法 import { createStore } from 'vuex 阅读全文
摘要:
'use strict'; const devEnv = require('./dev.env'); const path = require('path'); const os = require('os'); ///获取本机ip/// function getIPAdress() { var i 阅读全文
摘要:
npx webpack --emtry ./src/main.js --output-path ./bulid 阅读全文
摘要:
number.toString()//数字转字符串 null,undefined 不能使用toString转换为字符串 number.toString()//null,undefined String()转换方法可以转换字符串 parseInt("string") parseFloat("strin 阅读全文
摘要:
browserRedirect() { var sUserAgent = navigator.userAgent.toLowerCase(); if (/ipad|iphone|midp|rv:1.2.3.4|ucweb|android|windows ce|windows mobile/.test 阅读全文
摘要:
box-sizing:border-box; border:20px solid transparent; background-clip:padding-box,border-box; background-origin:padding-box,border-box; background-ima 阅读全文
摘要:
// document.getElementsByName('keywords')[0].content = 'abc' // document.getElementsByName('description')[0].content = '123' // document.getElementsBy 阅读全文
摘要:
document.body.removeChild(document.getElementById('loader-wrapper')) .chromeframe { margin: 0.2em 0; background: #ccc; color: #000; padding: 0.2em 0; 阅读全文
摘要:
jq: https://www.jianshu.com/p/d6f8bf71eb11 vue: https://www.jianshu.com/p/d6f8bf71eb11 阅读全文
摘要:
case 'noChinese': // 只能输入数字和英文 return /^(?![^a-zA-Z]+$)(?!\D+$)/.test(str); case 'phone': //手机号码 return /^1[3|4|5|6|7|8|9][0-9]{9}$/.test(str); case ' 阅读全文