Hbuilder快捷操作

CRTL+d 删除一行

在行后双击 选择一行 , 在行前双击 选择当前标签模块

 

js要require进来,变成了对象。

<script>  
var util = require('../../../common/util.js'); //在hello uni-app的common目录有一个工具类js,可以在hello uni-app中搜索这个例子查看。  
var  graceChecker = require("../../../common/graceChecker.js"); //在hello uni-app的common目录有一个graceChecker.js,它module.exports导出为了模块。  
import * as echarts from '/components/echarts/echarts.simple.min.js'; //将js导入并重命名为echarts,然后使用echarts.来继续执行方法。在hello uni-app有示例  
</script> 

 css外部文件导入

<style>  
    @import "./common/uni.css";  

    .uni-hello-text{  
        color:#7A7E83;  
    }  
</style> 

 学习教程

http://ask.dcloud.net.cn/article/35657

https://segmentfault.com/a/1190000015684864

 

posted @ 2019-06-21 13:28  A18  阅读(50)  评论(0)    收藏  举报