easyui datagrid新增按钮


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

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

        ]],

 

主要关注红色字体

 

在写一个editUser(index)函数


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM