Hướng dẫn string concat javascript
Phương thức Bài viết này được đăng tại freetuts.net, không được copy dưới mọi hình thức. Phương thức Cú pháp: Trong đó: Bài viết này được đăng tại [free tuts .net]
Cách sử dụngVí dụ: sử dụng phương thức
Kết quả Học lập trình miễn phí tại freetuts.net Tham khảo: w3schools.com Phương thức concat() dùng để nối hai (hoặc nhiều) chuỗi lại với nhau thành một chuỗi.Cú pháp:
Xem ví dụ The Parameters
One or more strings
to concatenate to Return valueA new string containing the combined text of the strings provided. Description The If the arguments are not of the type string, they are converted to string values before concatenating. The
ExamplesUsing concat()The following example combines strings into a new string.
Specifications
Browser compatibilityBCD tables only load in the browser See also |