Foxtable(狐表)用户栏目专家坐堂 → Weui里grid设置权限


  共有3719人关注过本帖树形打印复制链接

主题:Weui里grid设置权限

帅哥,在线噢!
有点蓝
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:109680 积分:558098 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2019/12/17 12:00:00 [显示全部帖子]

比如
dim UserName = e.Cookies("username")
With wb.AddGrid("","g1")
if UserName = "张三" then
            .Add("c1","Button""./images/button.png").
Attribute = "onclick='javascript:alert(""张三你单击了我!"")'"
elseif UserName = "李四" then
            .Add("c1","Button""./images/button2.png").Attribute = "onclick='javascript:alert(""李四你单击了我!"")'"
else
            .Add("c1","Button""./images/button3.png").Attribute = "onclick='javascript:alert(""你谁谁谁单击了我!"")'"
end if
     .Add("c2","Cell", "./images/cell.png", "http://www.foxtable.com")
   ‘……
        End With
[此贴子已经被作者于2019/12/17 12:01:47编辑过]

 回到顶部