.NET + layui -- 表格中转义html标签问题

出现的问题:在这里插入图片描述

解决方案:

 templet: function (d) {
       return d.VideoPath.replace(/</g, '&lt;');//html标签转化为字符串
 }

在这里插入图片描述

发布了35 篇原创文章 · 获赞 0 · 访问量 1655

猜你喜欢

转载自blog.csdn.net/weixin_43047070/article/details/102496644