Unclosed string error when linting

This question already has an answer here:

  • Creating multiline strings in JavaScript 34 answers

  • 做这样的事情

    $this.append(
                '<a href="' + slideLink + '"' + slideTarget + '>
                <span class="slide-time-date"></span>
                <div class="slide-overlay-text slide-overlay-text-mobile"' + slideColour + '>
        <span>' + slideOverlaytext + '</span>
        </div>
        <div class="slide-overlay-text slide-overlay-text-tablet"' + slideColour + '>
        <span>' + slideOverlaytext + '</span>
        </div>
        <div class="slide-overlay-text slide-overlay-text-desktop"' + slideColour + '>
        <span>' + slideOverlaytext + '</span>
        </div>
        <img src="' + slideImg + '" alt="' + slideTitle + '" />
                </a>'
        );
    
    链接地址: http://www.djcxy.com/p/30454.html

    上一篇: 元素<td>内的自定义占位符未显示

    下一篇: 发生短路时未闭合的字符串错误