我在我的项目中使用chessboard.js,但是当我将棋盘渲染到我的项目中时,它是将<img />标签转换为<images />
请看这张图片..

我现在能做什么?
下面是代码屏幕截图。

发布于 2017-10-13 00:41:40
$(document).ready(function(){
$('images').each(function(){
$(this).replaceTag('<img>', true);
});
});发布于 2017-10-13 01:20:46
如果要替换现有标记,可以执行以下操作:
$('images').each(function(){
$(this).replaceWith('<img>' + $(this).html() +'</img>')
});https://stackoverflow.com/questions/46714711
复制相似问题