uni-app (4)

The string passed in the background has line breaks, and the view tag cannot be displayed correctly. Use text. Insert picture description here
Here is another method for paging, onReachBottom, which is a separate interface, and the previous one is a component, so it is easier to use this , No need to set the height or anything, just use it directly, comfortable.
Insert picture description here
Because the album is an object here, it cannot be judged that there is a value in it, and it must be turned into an array.

var obj = {
    
     0: 'a', 1: 'b', 2: 'c' };
console.log(Object.keys(obj)); // console: ['0', '1', '2']

// array like object with random key ordering
var anObj = {
    
     100: 'a', 2: 'b', 7: 'c' };
console.log(Object.keys(anObj)); // console: ['2', '7', '100']

Insert picture description here

date

Set to Chinese
Insert picture description here
fromNow() to display
Insert picture description here
flex: 1 a few months ago ; this will take up a whole, and there are things next to it that will make the next to it still that big, and
most of them are writing styles today, this flex layout is quick to write I vomit, but I have familiarized it with it again and it is very effective. I hope that one day I can write it without the help of documents, hh, continue tomorrow, I can almost complete it with more effort.

Guess you like

Origin blog.csdn.net/weixin_46013619/article/details/105025903