npm config set registry https://registry.npm.taobao.org
npm config get registry
– 或npm info express
安装 ant design pro
npm create umi
# 选择 ant design pro
# 选择 typescript或javascript
npm config set registry https://registry.npm.taobao.org
npm config get registry
– 或npm info express
安装 ant design pro
npm create umi
# 选择 ant design pro
# 选择 typescript或javascript
有些时候,特别是虚拟机,跑着跑着,可能就不准了。校准时间就有必要了。
这里使用 ntpdate
来纠正数据
# centos
yum install ntpdate
# ubuntu
apt-get install ntpdate
# 开始纠正
ntpdate -u ntp.api.bz
如果发现时间和上海时间相差 8 个小时,时区问题请解决,再执行上边的命令。
vim /etc/profile
G
# 调到末尾,加入下边的命令
export TZ='CST-8'
# 使得环境变量生效,再执行上边的命令纠正时区
source /etc/profile
如果经常纠正可以加入定时任务
https://www.cnblogs.com/luchuangao/p/7795293.html
https://blog.csdn.net/wblinux/article/details/81981328
使用 yarn 来管理
npm config set registry=https://registry.npm.taobao.org
yarn config set registry https://registry.npm.taobao.org
yarn install
npm run watch-poll
composer require laravel/ui --dev
php artisan ui bootstrap
uniapp 项目默认是没有 package.json,也就是默认不支持 npm 安装第三方包。有时候需要第三方包,这个时候自己就可以配置使用了。
npm init -y
npm install gsap
import { TweenLite } from 'gsap/TweenMax'
商户操作:
# 生成 32 位秘钥
# http://code.php.net.cn 在线编辑
// 创建随机字符串
function createNoncestr($length = 16)
{
$chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
$str = "";
for($i = 0; $i < $length; $i ++)
{
$str .= substr ( $chars, mt_rand ( 0, strlen ( $chars ) - 1 ), 1 );
}
return $str;
}
$str = createNoncestr(32);
echo $str;
https://kf.qq.com/faq/180824JvUZ3i180824YvMNJj.html
api 证书不影响支付,对提现等功能才有用。
主题色,配色。
支持 sz/rz,上传下载。
做好上边这几个,已经很完美了。不想再弄更多更多。脑袋只有那么大。
https://blog.csdn.net/qianghaohao/article/details/79440961
https://www.jianshu.com/p/10ba12d55a49
https://github.com/xfanwu/oh-my-zsh-custom-xxf