You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var deviceId = "6"; // 这里假设你传入的 deviceId 是 6
var cmd = "echo " + deviceId;
shell(cmd, true);
报错:
调用方法 "shell" 失败: [ Argument cmd must be a string or JavaScript Array instead of echo 6 (JavaObject) ]
java.lang.RuntimeException: 调用方法 "shell" 失败: [ Argument cmd must be a string or JavaScript Array instead of echo 6 (JavaObject) ]....
The text was updated successfully, but these errors were encountered:
var deviceId = "6"; // 这里假设你传入的 deviceId 是 6
var cmd = "echo " + deviceId;
shell(cmd, true);
报错:
调用方法 "shell" 失败: [ Argument cmd must be a string or JavaScript Array instead of echo 6 (JavaObject) ]
java.lang.RuntimeException: 调用方法 "shell" 失败: [ Argument cmd must be a string or JavaScript Array instead of echo 6 (JavaObject) ]....
The text was updated successfully, but these errors were encountered: