Study

Truthy/Falsy

Truthy(true), Falsy(false): All values in JavaScript have an implicit Boolean value, Truthy if true and vice versa

  • Falsy containsfalse,0,' ',null,undefined,NaN
  • All the others are Truthy

Where false, 0, and ” are equal

false= =0	//=>true
false= =' '	//=>true
  ' '= =0	//=>true
Copy the code

Null is equal to undefine

null == undefine	//=>true
Copy the code

NaN is not equal to any value (including itself), so isNaN() is used to determine whether a value isNaN

A little knowledge

  • Mustache syntax => {{}}

Project

Axios failed to request on Safari

Recently, I used Vue+VantUI to make an H5, which ran well using the browser to simulate the phone, and there was no problem on the android phone when I put it on the server. As a result, the problem came when I opened it on IOS, and I found that the call interface button did not respond after I opened it in Safari. At first, I thought the button was disabled in Safari. After debugging, I found that it was not the button. What was the problem? The url address requested by the user is http://xxx. HTTPS contains a security protocol called SSL, which adds security features that HTTP lacks: encryption and server authentication.




This period of time a little busy (lazy), every day is to write page -> interface -> change the problem

Add in some trivia, and a sudden break in learning is a bit lazy! Reflect on