OpenwebMode 网页增强
命令名称: jsd.OpenwebMode 网页增强
语法格式: jsd.OpenwebMode()
命令参数: 无。
返回值: 无。
```脚本例子: 复制代码
Import "jsd.luae"
Import "shanhai.lua"
ShanHai.execute "chmod -R 777 " & GetTempDir()
If Dir.Exist(GetTempDir() & "jsd.apk") = 0 Then
TracePrint "释放附件"
PutAttachment GetTempDir(),"jsd.apk"
End If
//只需执行一次
If jsd.StartServer() Then
TracePrint "恭喜你!!可以使用插件"
Else
TracePrint "很遗憾!!!你无法使用插件"
End If
jsd.OpenwebMode
```
备注: 浏览器和某些APP无法获取节点和XML,需要开启网页增强。