How to append a string value during assignment in Javascript?

前端 未结 7 1089
故里飘歌
故里飘歌 2020-12-10 08:04

Hey i dont know if that is possible but i want to set a given variable in js by reference.

What i want to do is, that each time i pass a string to t

7条回答
  •  误落风尘
    2020-12-10 08:51

    Your code example will work just fine with +=; complete example below. This suggests the problem you're having lies elsewhere.

    
    
    
    
    Test Page
    
    
    
    

提交回复
热议问题