javascript - js vue project pre code display problem
伊谢尔伦
伊谢尔伦 2017-07-05 10:47:04
0
1
657

I encountered a problem. When the object is displayed in the pre tag, the function disappears.
For example, if you customize an object

test:{
    title:'aaa',
    fomatter:function(){
        return 'aa'
    }
},

Fill the code with v-html

<pre  id="editor" v-html="test"></pre>

The function is still missing. Is there any way to display the function?

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(1)
代言

JSON.stringify() will ignore the function

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!