What does it mean?

  var token = sessionStorage.getItem("token") || "";
  window.open(`http://47.106.133.91:8080/?token=${token}`)
  
  `http://47.106.133.91:8080/?token=${token}``${token}`?
  $
  
Mar.05,2021

template string


${token} indicates the variable token , which is the use of backquotes and indicates the variable


.

it is recommended to take a good look at ECMAScript 6

there are many new features


template string for E6

``  
${} 

it's not so detailed. < del > ~ < / del >

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b2b8bd-2bab4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b2b8bd-2bab4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?