Will continue to update!! Give yourself a long memory, but also to provide some useless reference. π€ π π denominator
π€ Input method shortcut keys
In fact, there are many development tools encountered shortcuts do not work, in many cases are too lazy to bother. I’m interested in seeing it today. Just write it down
Take wechat applets for example:
Right mouse button: Select command panel. Click in, search for shortcut keys, you can see a lot of combinations
If you want to see {{index}}
The “copy down” command does not work, so search “copy down”.Select, and then right mouse button, you can change to your accustomed shortcut key
π€ loop wx:for=” array”
It’s a simple loop with two pieces of data. I just looped through 32 pieces of data. I’m so surprised.
BookName: [{bookName: 'bookName ', bookPrice: "bookprice89", bookAuthor: "bookAuthor "}, {bookName: [{bookName:' bookName ', bookPrice: "bookprice89", bookAuthor: "bookAuthor "}, {bookName: 'Bookname 2', bookPrice: "bookprice89", bookAuthor: }], WXML: <view> <block wx:for="{{books }}" wx:for-item="books" wx:key="index"> {{index}} <template is="dTemplate" data="{{books}}"></template> </block> </view>Copy the code
Finally remove the space above the good… Temporarily think is the pot of the space bar, I am not very clear why, is it a program?? Ha ha ha ha
Bottom line: Don’t have any Spaces in quotation marks
π€ Applets scroll-view property scroll-x=”true” invalid
Solution: Scroll view + white-space: nowrap; Display: inline-block; display: inline-block;Copy the code