js去除字符串空格
js去除字符串空格(空白符)
使用js去除字符串内所带有空格方法:
replace正则匹配方法
去除字符串内所有的空格:str = str.replace(/s*/g,"");
去除字符串内两头的空格:str = str.replace(/^s|s$/g,"");
去除字符串内左侧的空格:str = str.replace(/^s*/,"");
去除字符串内右侧的空格:str = str.replace(/(s*$)/g,"");
js去除字符串空格(空白符)
使用js去除字符串内所带有空格方法:
replace正则匹配方法
去除字符串内所有的空格:str = str.replace(/s*/g,"");
去除字符串内两头的空格:str = str.replace(/^s|s$/g,"");
去除字符串内左侧的空格:str = str.replace(/^s*/,"");
去除字符串内右侧的空格:str = str.replace(/(s*$)/g,"");
阿里云gitee的问题
ping gitee.com
git pull
或者在 hosts C:\Windows\System32\drivers\etc
里映射 gitee.com 域名到 IP地址 212.64.62.174
国外域名商
godaddy,namesilo, namecheap,Bluehost
android studio调试creator打包的项目,需要注意的事项。
creator打包的安卓路径不要太长
com.android.ddmlib.AdbCommandRejectedException: device offline
解决方法:加入环境pathE:\android\sdk\platform-tools
查看:adb devices
win10激活,好用
win10激活:https://www.lanzous.com/i4xucva
windows 10 host文件路径C:\WINDOWS\system32\drivers\etc
加
203.208.41.41 dl.google.com
https://www.cnblogs.com/arcsinw/p/11577341.html
android studio proxy
mirrors.neusoft.edu.cn
https://blog.csdn.net/u010164190/article/details/53168905
cat /etc/redhat-release
看cpucat /proc/cpuinfo | grep name
看内存cat /proc/meminfo | head -4
看硬盘df -h
git --version
yum install -y git
ubunto安装:apt-get update -y; apt install git; apt install nginx
svn server 远程部署使用软件:VisualSVN server
windows10企业版下载
64位Win10 1909商业版ISO镜像下载信息
Business商业版包含版本:企业版,教育版,专业版,专业教育版,专业工作站版。
https://www.windows10.pro/win10-1909-iso-download/
windows to Go用企业版即可安装。
一个个人的学习网站,廖雪峰的官方网站
https://www.liaoxuefeng.com
写的还不错,很适合入门。
不要一开始就想着跨平台
layui针对pc上的页面来设计的,有很多手机上没有的酷的功能。一开始就想做手机上的话,得不偿失。
其他类似,做好一个细分市场。
vscode字体大小调整
Ctrol加+/-,即可调大调小字体。
前端cdn库
https://cdnjs.com/
开发者手册 - 腾讯云写的文档
https://cloud.tencent.com/developer/devdocs
可以学习。
关于pm2 和 npm结合的使用说明:
全局安装pm2:npm install -g pm2npm run dev
等同于 pm2 start npm -- run dev
npm start
等同于 pm2 start npm -- start
命名进程名
pm2 start npm --name test -- run dev
pm2 start npm --name test -- start
语法:pm2 start npm --watch --name <taskname> -- run <scriptname>;
其中 -- watch监听代码变化,-- name重命名任务名称,-- run后面跟脚本名字
"scripts": {
"start": "ts-node src/index.ts",
}