Javascript 向动态创建的表中添加图标

Javascript 向动态创建的表中添加图标,javascript,twitter-bootstrap,twitter-bootstrap-3,imagebutton,Javascript,Twitter Bootstrap,Twitter Bootstrap 3,Imagebutton,我正在尝试将glyphicon添加到动态创建了行的表中。我的问题是在外部js文件中添加图标 function createRemoveRowButton(ArrayIndex) { var removeRowButton = document.createElement("BUTTON"); var image = document.createElement("input"); image.src = "example.jpg"; image.type = "i

我正在尝试将glyphicon添加到动态创建了行的表中。我的问题是在外部js文件中添加图标

function createRemoveRowButton(ArrayIndex) {
    var removeRowButton = document.createElement("BUTTON");
    var image = document.createElement("input");
    image.src = "example.jpg";
    image.type = "image";
    removeRowButton.appendChild(image);
    removeRowButton.onclick = function() {
    deleteRow(ArrayIndex);
    };

    return removeRowButton;
}

我已经在getbootstrap.com上的“如何使用”部分和Google一起搜索过了,但到目前为止还没有找到运气。

在Bootstrap 3中,字形图标不是图像,而是字体中的字符。有关引导的用法,请参阅。只需附加一个具有类“glyphicon”及其字体类(glyphicon remove)等的范围。。