javascript中带换行的字串赋值问题

fog posted @ 2008年9月05日 21:35 in 暂未分类 with tags javascript , 4920 阅读

今天在做一个页面的时候遇到这样的问题:
javascript中需要把一个字符串赋值给一个变量,然后对此变量进行函数操作。当字符串中不含有换行符的时候一切正常,可是一旦有了换行符号,javascript就出错了。

网上搜了一下,发现把换行符号替换成 "
" 就可以了。

Avatar_small
iphone png 说:
2022年8月10日 03:21

Well to some people it is just another logo for another luxury brand that rich people across the world would love to have in their hands, iphone png but if you look closely there is more to what meets the eye then what is present in the Apple iPhone Logo and in this article we will be going over the history of the logo, the meaning of it as well.

Avatar_small
Robinjack 说:
2023年7月13日 16:18

The post acceptably joined the focal parts and functionalities of different book frame applications, uncovering information into their enamoring liabilities. The producer's wide appraisal, agreed with their own encounters, pulled in me to pick informed choices about which applications change best to my affinities and sorting out targets. They included factors like accuracy, watchfulness, and solace, which on a strikingly focal level stayed aware of reducing the choices. StoryShots

Avatar_small
Robinjack 说:
2023年7月13日 16:18

Respected this post looking at the space of book frame applications, and I ought to say it was an enlightening squashed. The creator worked truly of influencing into the universe of fit cycles and gave key data about the best applications that are out there. I saw their assessment as particularly surprising and material to my necessities since I'm a ravenous peruser with bound time. Executive Book Summaries

Avatar_small
Robinjack 说:
2023年7月13日 16:18

The post immediately joined the central parts and functionalities of various book outline applications, revealing data into their picture name liabilities. The maker's concentrated examination, related with their own experiences, pulled in me to pick informed decisions about which applications change best to my affinities and sorting out targets. They included factors like accuracy, exactingness, and comfort, which completely remained mindful of decreasing the decisions. blinkist books

Avatar_small
Robinjack 说:
2023年7月13日 16:18

Furthermore, the blog area limit showed the sensible sorts of progress of book outline applications for perusers of all establishments and interests. The essayist included how these applications could stay aware of one's seeing experience by giving thick yet focused summations, allowing clients to embrace the middle assessments and assessments of a book without cash the bosses wide time. headway book summaries

Avatar_small
Robinjack 说:
2023年7月13日 16:18

If all else fails, the blog part on book outline applications was a key resource that left me feeling ready and drawn to check out at this inventive improvement for figuring out looking at. I respect the maker's wide assessment and expressive show, as it truly extended my perspective on the need of these applications. I'm right as of now upsetting to influence into the universe of book frame applications and witness firsthand the way that they can change and restore my figuring out process. 12min book summaries

Avatar_small
Robinjack 说:
2023年7月13日 16:18

Regarded this post taking a gander at the space of book once-over applications, and I should say it was an edifying taken out. The maker really got of cross part into the universe of dynamic cycles and gave key information about the best applications that are out there. I saw their assessment as particularly expedient and material to my wanderer pieces since I'm a drawn in peruser with bound time. getAbstract

Avatar_small
ch 说:
2023年8月07日 03:34

If you don't mind proceed with this extraordinary work and I anticipate a greater amount of your amazing blog entries. 먹튀검증

Avatar_small
ch 说:
2023年8月09日 04:26

A debt of gratitude is in order for sharing this helpful information.. Ac repair las vegas

Avatar_small
ch 说:
2023年8月28日 06:11

I truly appreciated perusing this post, huge fan. Keep doing awesome me when would you be able to distribute more articles or where would I be able to peruse more on the subject? digitizing

Avatar_small
ch 说:
2023年9月03日 07:13

Every one of the substance you specified in post is too great and can be exceptionally valuable. I will remember it, a debt of gratitude is in order for sharing the data continue overhauling, looking forward for more posts.Thanks 먹튀검증

Avatar_small
ch 说:
2023年10月03日 05:00

Much thanks to you for peopling get the data they require. Extraordinary stuff of course. Keep up the colossal work!!! 토토사이트

Avatar_small
ch 说:
2023年10月10日 04:00

A debt of gratitude is in order for this extraordinary post, i discover it exceptionally fascinating and extremely well thoroughly considered and set up together. I anticipate perusing your work later on. https://www.xenicalshop.com/product/3

Avatar_small
ch 说:
2023年10月20日 08:05

A captivating examination is worth remark. I imagine that it is best to compose additional on this matter, it won't be a forbidden subject however for the most part individuals are insufficient to chat on such themes. To the following. Salud Visit This Link

Avatar_small
jam 说:
2023年11月01日 21:15

Blasphemy! : ) Simply kidding. Ive go through related points upon various other weblogs. Sick acquire your term for this. Continue to be sound! the companion. Sports leggings

Avatar_small
ch 说:
2023年11月08日 20:28

A debt of gratitude is in order for the important data and bits of knowledge you have so given here... san luis obispo commercial office cleaning services


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter