javascript - 棋盘图片标签变为图片

标签 javascript jquery chessboard.js

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

请看图片.. enter image description here 我现在能做什么 ???

这里是代码截图。 enter image description here

最佳答案

  $(document).ready(function(){
    $('images').each(function(){
        $(this).replaceTag('<img>', true);
    });
  });

关于javascript - 棋盘图片标签变为图片,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46714711/

相关文章:

javascript - 页面重定向后克隆选定的下拉值

javascript - 在 meteor 项目中集成 Chessboard.js

javascript - Rangy (JS/jQuery) 拆分节点

javascript - 计算 hh 时间的平均值 :mm format

javascript - 如何更改 chessboard.js 中的转弯?

node.js - Chessboardjs NPM包,不显示图像

javascript - 鹅毛笔.js : How to prevent newline entry on Enter to submit the input?

javascript - 在嵌套原型(prototype)子对象中使用 'this'

javascript - 当我在 React 中更改传递给它的 Prop 时,组件没有更新

javascript - 单击按钮添加和删除具有唯一 ID 的 div