Discuz! Board

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 1986|回复: 2
打印 上一主题 下一主题

web开发总结

[复制链接]

697

主题

1142

帖子

4086

积分

认证用户组

Rank: 5Rank: 5

积分
4086
跳转到指定楼层
楼主
发表于 2017-4-8 19:35:28 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

bootstrap table

https://datatables.net/manual/tech-notes/3


js调试 debugger

问题:
切换向导函数找不到

函数添加到返回中
return {
        init : init,
        insertMaterial:insertMaterial,
        updateMaterial:updateMaterial,
        showOrderDetail:showOrderDetail
        };
        
        调用时 appMpJxOrders.showOrderDetail('+id+')"

table传两个参数

https://editor.datatables.net/examples/styling/bootstrap.html




{
                "data" : "orderCode", render:function(orderCode){
                    return ('<a href="#" data-type="text" data-pk="1" data-title="'+orderCode+'">'+orderCode+' </a>');
                 }
            },
            
               { data: null, render: function ( data, type, row ) {
                // Combine the first and last names into a single table field
                return data.first_name+' '+data.last_name;
            } },
            

回复

使用道具 举报

55

主题

78

帖子

289

积分

认证用户组

Rank: 5Rank: 5

积分
289
沙发
发表于 2017-4-11 16:17:53 | 只看该作者
回复 支持 反对

使用道具 举报

697

主题

1142

帖子

4086

积分

认证用户组

Rank: 5Rank: 5

积分
4086
板凳
 楼主| 发表于 2018-5-4 16:24:41 | 只看该作者
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|firemail ( 粤ICP备15085507号-1 )

GMT+8, 2024-5-6 02:59 , Processed in 0.055585 second(s), 18 queries .

Powered by Discuz! X3

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表