for example:
getCookie ("home_voice")? True: setCookie ("home_voice", 0);
it feels strange to true. Do you have a more suitable one? Do not know whether it is feasible to give an empty string ("")?
for example:
getCookie ("home_voice")? True: setCookie ("home_voice", 0);
it feels strange to true. Do you have a more suitable one? Do not know whether it is feasible to give an empty string ("")?
getCookie ("home_voice") | | setCookie ("home_voice", 0)
empty string does not work, because judging by if, empty string returns false
just use or
getCookie("home_voice") || setCookie("home_voice",0);
getCookie("home_voice")getCookie("home_voice"):setCookie("home_voice",0);
then why do you still use three yuan? If the upstairs positive solution
is really executed, then use getCookie ("home_voice") & & setCookie ("home_voice", 0)
if it is not true, use getCookie ("home_voice") | | setCookie ("home_voice", 0)
if you still want to use
getCookie ("home_voice")? Console.log ("getCookie (" home_voice ") = true"): setCookie ("home_voice", 0);
easy to debug
Previous: When vue is packaged, how to make it not delete the original files in dist?
Next: Px2rem conversion Settings Font Note / * px*/, fonts are not converted to the set size?
array(2) { [0] => array(3) { [0] => string(3) "16G" [1] => string(3) "32G" [2] => string(3) "64G" } [1] => array(2) { [0] => string(1) "L" [1] => string(2) "XL&quo...
< H2 > question wants to buy a server < H2 > I used to buy an esc, in Aliyun, but it was too expensive, so I didn t renew it later. Finally, Aliyun offered a new user discount. I m a regular user, so I m not happy at all. What s the difference bet...
el-tree child nodes are not all selected, and the data of the parent node cannot be obtained ...
Piglet Page s beautified art QR code, such as the ninth workshop, is very beautiful and creative. https: www.9thws.com codeuti. what I know so far is that there are many QR code generation libraries, such as php, phpqrcode,js and QRCode.js. howev...