search

Home  >  Q&A  >  body text

Can the value inside double quotes be variable?

function aa(){
hei=100;
wid=100;
function aa(){
wid=100;
wid =10;
mygetTime() ;
  box.style.width:'hei "xp"';
  if(hei=200&&trop=1){
    return;
  } Can the value inside the double quotes be variable


陈2222 days ago943

reply all(1)I'll reply

  • 天蓬老师

    天蓬老师2018-11-15 22:20:57

    Double quotes are the delimiters of strings, and variables are also interpreted as ordinary strings

    reply
    0
  • Cancelreply