You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- 注意:
- 1、所有图片加载尽量使用 img 标签 , 否则打包后容易出现图片路径错误显示出不来
- 2、尽量使用 img的src
-
-
-
- http请求
- 1、
- 同步请求
- async initData() {
- let param = {username:'xxx'};
- let res_data = await homeList(param);
- }
-
-
- 2、异步请求
- load(){
- let param = {username:'yyyyy'};
- homeList(param).then(res=>{
- //...
- }).catch(e=>{
- //...
- });
- }
-
-
- tool工具类
- 只需引用config/mutil/tool.js 就可以了
- tool拥有cardId和dateUtil对象
|