1、導入其他文件
1.1? 導入JS文件? :? import temp from '../../components/temp'
1.2? 導入WXML文件? ? :? ? ? <import src="../../components/temp.wxml"/>
1.3 導入WXSS文件? :? ? @import "../../components/temp.wxss";
2、在template 寫跳轉的時候注意跳轉鏈接 不能是 跳到 底部tabBar 的相關路由
3、在布局的時候 ?想使用flex布局的話 ? 要寫上display:flex;
4、獲取屏幕的寬高??wx.getSystemInfoSync().windowWidth