[英]javascript string concatenation
我知道在php中可以
abc = 'some';
abc .= 'thing';
echo abc; will output : something
如何在javascript中做到這一點?
我嘗試過abc = abc + bcd ...但是應該有更好的方法
嘗試這個:
abc = 'some';
abc += 'thing';
alert(abc); // will output `something`
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.