描述:Convert this text field into a combobox if possible and add a selection option.
二.:depend(key,value)
描述:Only show this option field if another option key is set to value in the same section.
If you call this function several times the dependencies will be linked with or
只能显示该选项字段,如果另一个选项键被设置在相同的section。
如果你调用这个函数多次的依赖将或链接官网说的太绕口了,
简单的说就是此值表示这个选项是依赖别的选项,别的选项如果设置为了真则此选项才能显示出来。查看
- ssl_enable = s:taboption("gjsz",Flag, "ssl_enable", translate("加密传输"),"启用安全套接层协议传输,提高网络传输安全")
- sslport = s:taboption("gjsz",Value,"sslport","SSL传输端口号","默认443")
- sslport:depends("ssl_enable","1")
复制代码
图示: