Comments (10)
获取可以,但修改,你需要另外实现。要么写 Lua 绑定 C,要么通过 Lua 执行 shell 脚本
from oui.
获取可以,但修改,你需要另外实现。要么写 Lua 绑定 C,要么通过 Lua 执行 shell 脚本
能给指导下吗,或者给指点下哪个文件里有类似的调用过程,我是个新手,折腾一天了也没搞定
from oui.
我在vscode得oui-rpc-core得system.lua和op系统内得同文件同位置加了下面代码:
function M.set_localtime(params)
local time = 1000000000
time.at(0.5, function()
os.execute('date -s' .. time)
end)
end
浏览器得按钮触发加了下面代码:
syncTime() {
this.$oui.call('date', '-s', '1000000000')
//this.$oui.call('system', 'set_localtime', '1000000000')
},
第二段代码中得两个命令无论用哪个都没有执行成功,是哪里做的有问题吗
from oui.
function M.set_localtime(c)
local time = params.time
os.execute('date -s ' .. time)
end
syncTime() {
const time = '2019-05-29 10:58:00'
this.$oui.call('system', 'set_localtime', { time })
}
from oui.
不行哦
from oui.
function M.set_localtime(params)
local time = params.time
os.execute('date -s ' .. time)
end
from oui.
function M.set_localtime(params) local time = params.time os.execute('date -s ' .. time) end
这个也试了,还试了
syncTime() {
//const time = '2019-05-29 10:58:00'
this.$oui.call('system', 'set_localtime', {
time: '2019-05-29 10:58:00'
})
}
都不行
from oui.
需要配置权限
from oui.
虽然找到了解决办法。也觉得这个项目挺好用,但是想想,vue的版权人是一个人,你这项目版权人也是一个人,我还是不贡献代码了,也不用这个项目了,我还是去用bootstrap了。
from oui.
虽然找到了解决办法。也觉得这个项目挺好用,但是想想,vue的版权人是一个人,你这项目版权人也是一个人,我还是不贡献代码了,也不用这个项目了,我还是去用bootstrap了。
我特意瞅了一眼,这不是MIT吗?https://github.com/zhaojh329/oui/blob/master/LICENSE
from oui.
Related Issues (20)
- use components which was installed globally for createDiscreteApi HOT 1
- 编译后打开网页无法打开 HOT 8
- OPENWRT编译OUI出错 HOT 5
- 大佬 这个问题我解决不了 也重新拉源码了 node版本也换过 HOT 4
- 大佬 这个问题我解决不了~ 更新feed后,OUI丢失一些选项
- how to start developing? HOT 3
- oui-rpc not found HOT 3
- Setting up Development enviroment
- Should we limit the node PATH env var ? HOT 11
- I'll replace nginx with lua-eco.
- 可以支持cgi-bin吗? HOT 3
- web运行正常,用vscode运行npm run dev后报错 HOT 1
- 能否直接在路由器上运行代码
- Scrollbar can't scroll to the end of the right side content HOT 1
- too many inode was used when build oui HOT 1
- 输入用户名密码后按回车不能登录 HOT 2
- Cannot satisfy the following dependencies
- How to use Composition API? HOT 4
- oui-httpd service not running
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oui.