判断字符串是否包含
			str.indexOf("aaaa")>=0
		
字符串截取
			stringObject.substring(start,stop)
		
数组和字符串转换
			数组转字符串
			b = a.join("-");
			字符串转数组
			ss = s.split(",");
		
字符串替换
			str.replace(/Microsoft/g, "W3School")
			将使用 "W3School" 替换字符串中的 "Microsoft"
		
去除input选中的内边框
			outline:none;
		
瀑布流自动排列
			#main_box{
			    margin: 0 auto;
				-moz-column-count:2; /* Firefox */
				-webkit-column-count:2; /* Safari 和 Chrome */
				column-count:2;
				display:inline-block;
			}
		
重置mysql密码
			wget http://soft.vpser.net/lnmp/ext/reset_mysql_root_password.sh;sh reset_mysql_root_password.sh
		
查看svn进程
			ps -ef | grep svn
		
杀掉进程
			kill  -9 4910
		
启动svn
			svnserve -d -r /home/data/svn/
		
nginx 重启命令
			service nginx restart
		
域名绑定
			lnmp vhost add
		
清除指定目录下的所有文件
			rm -rf *
		
查看定时任务
			crontab -l
		
查看文件属性
			lsattr -a
		
取消文件 -i 属性
			chattr -i 1.txt
			rm -rf 1.txt
		
查找文件
			find . -name 'srm*'   #表示当前目录下查找文件名开头是字符串‘srm’的文件
		
数组倒序
			array_reverse
			array_reverse_order
		
数组重新排序
			array_multisort($arr,SORT_DESC, $lists,SORT_ASC);
		
基本结构
			
		
输出html
			解决vue.js不识别文本html标签,使用 v-html 输出
			
		
苏ICP备20008230号-1