easyui datagrid新增按钮

columns: [[
            { field: 'checkid', title: '选择', checkbox: true },
            { field: 'FID', title: '单据内码', align: 'center', hidden: true },
            { field: 'FGroupName', title: '组名', align: 'center',  '300px' },
            { field: 'FDate', title: '新增日期', align: 'center',  '250px' },
            { field: 'FStatus', title: '状态', align: 'center',  '200px' },
            {
                field: 'Word', title: '操作', align: 'center',  '600px', formatter: function (value, row, index) {

                    return '<a href="#" onclick="editUser(' + index + ')">修改</a>';

                }
            },

        ]],

主要关注红色字体

在写一个editUser(index)函数

原文地址:https://www.cnblogs.com/erph/p/9067154.html