登录 | 注册 | FAQ
Anonymous

JavaScript String

+ 发表回复

4 篇帖子 分页: 1 / 1


JavaScript String

Chikwado » 周五 3月 27, 2015 9:31 pm

头像

Chikwado

  • 帖子: 89
  • 注册: 周一 7月 29, 2013 11:36 pm
  • 地址: Nigeria
--
Focus On Advance Science And Programming.

Re: JavaScript String

nanoverso » 周六 3月 28, 2015 1:57 am

Adding a backslash at the end of each line tells the JavaScript engine that the string will continue to the next line.
头像

nanoverso

  • 帖子: 253
  • 注册: 周六 5月 10, 2014 12:08 am
  • 地址: Brazil

Re: JavaScript String

XainPro » 周六 3月 28, 2015 8:09 am

you can use + like this

var myText="my javascript"+
"text";
头像

XainPro

  • 帖子: 3933
  • 注册: 周五 2月 17, 2012 8:10 pm

Re: JavaScript String

johnmacd » 周五 4月 15, 2016 12:56 pm

The solution to avoid this problem is to use the \ escape character.
头像

johnmacd

  • 帖子: 23
  • 注册: 周四 6月 13, 2013 12:50 pm
--
Website Designer with 7 years experience as WordPress Developer. Affordable, Professional and Experienced. 100% Satisfaction. 24/7 Available.


+ 发表回复

分页: 1 / 1