摘要:        
一、下载 npm i @vant/weapp -S --production 下载完毕之后,就可以在 node_modules 文件夹里,看见下载的包了。 2、移动文件夹 把刚刚下载的包文件夹下的 lib 文件夹拷贝进 src\components文件夹中。 3、使用 结合官方文档,按需引入使用需要    阅读全文
posted @ 2019-12-10 17:42
徐林俊
阅读(977)
评论(0)
推荐(0)
        
            
        
        
摘要:        
公用方法: let checkType = (data) => { if(data){ console.log(true); }else{ console.log(false); } } 一、字符串 checkType('hello~'); // true checkType(''); // fal    阅读全文
posted @ 2019-12-10 11:42
徐林俊
阅读(311)
评论(0)
推荐(0)
        
            
        
        
摘要:        
一、ES5 function fn(x, y){ y = y || 20; console.log(x, y); } fn(); // undefined 20 fn(5); // 5 20 fn(5, 10); // 5 10 二、ES6 let fn = (x, y = 20) => { con    阅读全文
posted @ 2019-12-10 11:09
徐林俊
阅读(628)
评论(0)
推荐(1)
        

 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号