以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  如何定义一个weui的单选列表项  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=184152)

--  作者:fntfgz
--  发布时间:2022/11/25 16:58:00
--  如何定义一个weui的单选列表项

我防着exweui的写法,下面两种写法,都报错,请老师指导
Dim wb As New weui

\'Dim rdg1 As WeUI.RadioGroup  ’写法一
Dim rdg1 As wb.RadioGroup  ‘写法二


Dim rdg As ExWeUI.ExRadioGroup = ExWeUI.WebUI.AddRadioGroup("","rdg1","横排,自动换行显示<span style=\'float:right;color:red\' id=\'v1\'></span>")  
        rdg.add("rd1","Microsoft Edge").Attribute = """  
        rdg.add("rd2","Google Chorme").Attribute = """  
        rdg.add("rd3","FireFox").Attribute = """  
        rdg.add("rd4","QQ浏览器").Attribute = """  
        rdg.add("rd5","傲游浏览器").Attribute = """  
        wb.InsertHTML("form1",rdg.BuildHtml)  


--  作者:有点蓝
--  发布时间:2022/11/25 17:04:00
--  
Dim rdg1 As wRadioGroup = wb.AddRadioGroup("form1", "学历", "学历")

打开新版代码编辑器,把鼠标移到AddRadioGroup,很容易就找到类型了

图片点击可在新窗口打开查看此主题相关图片如下:1.png
图片点击可在新窗口打开查看