1.本地npm/yarn 安装某个依赖后,copy对应文件到uni-app目录下
步骤如下:举个栗子,安装js-cookie
1.创建一个空的文件夹如:test-moudle。
2.进入 test-moudle 打开命令行工具,执行npm init
初始化项目,一路回车即可。
3.下载第三方库:npm install js-cookie
npm init
npm install js-cookie || yarn add js-cookie
--by Affandi ⊙▽⊙
网友评论