This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm ERR! Windows_NT 6.3.9600 | |
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "n" | |
// 解决方案 | |
npm set registry http://registry.npmjs.org/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
开机启动按f12键,进入后,到最后一项exit把OS Optimized Defaults(操作系统优化的缺省值)改成Disabled(关闭)。 | |
再进入到Startup这一项,选择UEFI/Legacy Boot改为Legacy First后 | |
再按F10保存。 | |
重启电脑按f12,选择u盘启动,就可以进U盘启动盘了。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
例如: | |
<ul id="menuLi"> | |
<span>要匹配的标签和内容</span> | |
<div>要匹配的标签和内容</div> | |
</ul> | |
正则: | |
<ul id="menuLi">([^*]+?)</ul> | |
结果: | |
<span>要匹配的标签和内容</span> | |
<div>要匹配的标签和内容</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vue高亮插件:language-vue | |
支持emmet语法: | |
文件》用户键盘映射》keymap.cson添加: | |
'atom-text-editor[data-grammar~="vue"]:not([mini])': | |
'tab': 'emmet:expand-abbreviation-with-tab' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
###vue-cli使用方法 | |
1. npm install vue-cli -g 安装vue-cli的环境 | |
1.1 vue --verson 查看脚手架版本 | |
2. vue init webpack vue-demo | |
2.1 vue init webpack-simple vue-webpack-simple-demo简单版的webpack | |
3. 进入生成目录执行npm install | |
4. npm run dev启动 | |
5. npm run build 打包 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
::-webkit-input-placeholder { /* WebKit browsers */ | |
color: #fff; | |
} | |
:-moz-placeholder { /* Mozilla Firefox 4 to 18 */ | |
color: #fff; | |
} | |
::-moz-placeholder { /* Mozilla Firefox 19+ */ | |
color: #fff; | |
} | |
:-ms-input-placeholder { /* Internet Explorer 10+ */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>背景图撑开盒子高度</title> | |
<style> | |
.bg-box { | |
background-image: url(../demo.jpg); | |
background-size: 100% 100%; | |
background-repeat: no-repeat; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var reg = new RegExp("[\\u4E00-\\u9FFF]+","g"); | |
if (reg.test(str)) { | |
alert('chinese') | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
</head> | |
<body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
</head> | |
<body> | |
<script> | |
var reg = /\((.+?)\)/g; | |
var reg2 = /\((.+?)\)/; |