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