Create a variable in jquery with html content

前端 未结 5 1015
死守一世寂寞
死守一世寂寞 2021-02-09 13:18

Hi I am trying to create a variable in jquery that contains a table for outputting in different areas of a website. But it is giving me an error, and I do not understand why. He

5条回答
  •  不知归路
    2021-02-09 14:06

    You could concatenate strings like it was suggested. Or another way is to escape new line characters with back slash:

    var html = " \
        .... \
        
    ";

提交回复
热议问题