以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 关于如何禁用tabar (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=176391) |
-- 作者:ap9709130 -- 发布时间:2022/4/11 15:23:00 -- 关于如何禁用tabar 老师 With wb.AddTabBar("form1", "tb1", 1) .AddPage("page1","订单条件",).AddPage("page2","订单明细") .AddButton("bt1","保存订单").Attribute= "" End With 我用这个代码生成的TabBar,现在我想在一定的条件下禁止点击 page2和 bt1. 然后一定条件下又要恢复可以点击,请问 js 中要如何实现?
|
-- 作者:有点蓝 -- 发布时间:2022/4/11 15:44:00 -- 参考:https://blog.csdn.net/weixin_43215482/article/details/88351830 TabBar项对应的a标签的id为【page1_btn】,按照上面的方式设置 如果是按钮就是代码里定义的id名称,取消标签里的href属性值即可
|