0

想要运行一些测试,我怎样才能实现以下目标:

function(){console.log('console me')} 由文本包围的数据中,但我不希望数据像当前那样以 HTML 显示,我希望它改为执行,并且只让周围的文本显示在页面上。

JSON数据

[{ "id": "1", "text": "I am testing console log from within json data function(){console.log('console this text')} so the text before this should not appear in html, rather it should run and all this other text should appear"}] 
4

0 回答 0