以下是代码/* I have setted up a button to enter html code in this div via jquery*/
/*Now I want to devise another button which will disable further addition addition to the div elementswith the previous h
我有一个html字符串。因为我需要对它做一些操作,所以我需要使用jquery。但是,我有一个问题,就是jQuery向字符串添加了额外的标记。我怎么才能避免。var html = marked(input); //returns an html string
console.log(html); //prints: <p>test<div>Type</
我有一个div,在其中我必须填写一些数据。我必须根据条件呈现HTML,并使用jQuery向该jQuery添加数据。有人能告诉我如何在页面上添加基于条件的HTML插入吗?function AddData() var data = "<div><h1>My data</h1>"
if(jsVariable){The