【问题标题】:explanation of Luci lua code from OpenwRT来自 OpenwRT 的 Luci lua 代码解释
【发布时间】:2017-10-01 16:40:31
【问题描述】:

我从 /luci/controller/admin 路径获得了一个 .lua 代码

module("luci.controller.admin.network",package.seeall)
function index()
    local e
    e=node("admin","tab")
    e.target=firstchild()
    e.title=_("tab")
    e.order=60
    e.index=true
end

e.order=60e.index=true 是什么意思?如何在选项卡下拉列表下添加新的子类别?有什么建议吗?

【问题讨论】:

    标签: lua openwrt luci


    【解决方案1】:

    我明白了。 e.order=60 表示选项卡的位置,e.index=true 表示可以添加子元素

    【讨论】:

      猜你喜欢
      • 2015-01-15
      • 2014-04-30
      • 2021-06-21
      • 2017-03-26
      • 1970-01-01
      • 2018-05-01
      • 1970-01-01
      • 1970-01-01
      • 2020-03-16
      相关资源
      最近更新 更多