Skip to content

Commit

Permalink
docs: 添加代码规范内容
Browse files Browse the repository at this point in the history
  • Loading branch information
oustr committed Aug 2, 2023
1 parent 128057f commit 6ac7eaa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions comments
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
代码规范:

长宽单位统一用vw(高度上的也是vw,字号也是,都以屏幕宽度为准),不用rpx(不是原生的,经常容易标红报错)
<image mode="aspectFill"/> 用aspectFill可以使得在长宽固定的情况下 图片居中且填满整个长宽 多余的会被隐藏起来 不会让图片变形



uni.setStorageSync(KEY,DATA)
uni.getStorageSync(KEY)

Expand Down

0 comments on commit 6ac7eaa

Please sign in to comment.