save.lua.svn-base
来自「嵌入式无线路由系统openwrt的web配置工具」· SVN-BASE 代码 · 共 22 行
SVN-BASE
22 行
#!/usr/bin/lua-- Copyright (C) 2008 OpenRB.comrequire('fslib')data = datajson() or {}if (data['values'] ~= nil) then file = 'test' if (data['id'] == nil) then data['id'] = uci.addsection(file, 'test') else uci.init(file, data['id'], 'test', true) end for field, value in pairs(data['values']) do uci.setvalue(file, data['id'], field, value) end uci.commit(file)end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?