将Javascript字符串转换为html表

将Javascript字符串转换为html表,javascript,jquery,html,Javascript,Jquery,Html,我有一个javascript字符串中表格的html代码,当我将此代码转换为html对象时, 一些html标记消失,只保留其标记的内容。。。 这是我的密码 var tab = this.model.get("table"); console.log(tab); //here the result is exactly $(tab).appendTo(this.el) //here some tags were hidden 这就是确切的结

我有一个javascript字符串中表格的html代码,当我将此代码转换为html对象时, 一些html标记消失,只保留其标记的内容。。。 这是我的密码

var tab = this.model.get("table");
console.log(tab);                   //here the result is exactly
$(tab).appendTo(this.el)            //here some tags were hidden
这就是确切的结果

这是使用htdden标记的结果

有人能帮我吗


请原谅我的英语不好……:)

你能不能把这个问题略谈一下?这个.el实际上代表什么?这是一个
标签吗?这里没问题:我真的很讨厌评论中的破折号。真正地