switch statement in Jquery and List

前端 未结 4 827
余生分开走
余生分开走 2020-12-16 23:03

I would like to know if my approach is efficient and correct. my code is not working though, I don\'t know why.



        
4条回答
  •  無奈伤痛
    2020-12-16 23:56

    alert("myVar1= " + myVar1 +"/n"+ "myVar2= " + myVar2);
    

    Placing /n in side of your string in an alert box will allow you to display multiple vars with nifty line breaks in an alert box.

    myVar1= Data
    myVar2= more Data
    

提交回复
热议问题