小编joe*_*ab3的帖子

单击时刷新页面的按钮

我需要点击刷新页面的按钮.我试过这个:

<input type="button" value="Reload Page" onClick="reload">
Run Code Online (Sandbox Code Playgroud)

要么

<input type="button" value="Refresh Page" onClick="refresh">
Run Code Online (Sandbox Code Playgroud)

但两者都行不通!

javascript refresh button reload

92
推荐指数
9
解决办法
30万
查看次数

在应用程序中执行HTTP请求

我想知道我是否可以打开它但是没有打开android浏览器,我只需要它访问:(假装这是ip)http; // 91.91.91.91:2228?1,它将触发我的arduino上的动作兆.我试图用这段代码来做到这一点

onclick(Intent websiteIntent = new Intent(Intent.ACTION_VIEW);
    Uri uri = Uri.parse("http;//91.9.91.91:?1");
    websiteIntent.setData(uri);
    startActivity(websiteIntent);)
Run Code Online (Sandbox Code Playgroud)

但我不知道怎么做到这一点

html android arduino hyperlink

0
推荐指数
1
解决办法
776
查看次数

标签 统计

android ×1

arduino ×1

button ×1

html ×1

hyperlink ×1

javascript ×1

refresh ×1

reload ×1