Home >Web Front-end >JS Tutorial >Solution to the problem of js assignment containing single quotes and double quotes_javascript skills

Solution to the problem of js assignment containing single quotes and double quotes_javascript skills

WBOY
WBOYOriginal
2016-05-16 16:58:171268browse

My page is a jsp page, which contains a parameter: lefttree,

This lefttree is spelled out from the background, and the content is html code: such as:

Copy code The code is as follows:



In the jsp page, this value needs to be paid to a div through js code, as follows:
Copy code The code is as follows: