level 2
JavaException: java.lang.IllegalArgumentException: class android.content.res.ColorStateList declares multiple JSON fields named mChangingConfigurations
2020年03月16日 11点03分
1
level 2
var DaMaUserName = "测试账号";
var DaMaPWD = "测试密码";
var CodeImg = images.read("./res/testCodeImg.png");
console.log("账号:" + DaMaUserName);
console.log("密码:" + DaMaPWD);
console.log(getCode(DaMaUserName, DaMaPWD, CodeImg).data.res");
以上代码单独运行是正常的,调用getCode返回码值,getCode里面包含Http操作
2020年03月16日 11点03分
4
level 2
"ui";
ui.layout(
<vertical>
<linear marginLeft="8">
<text textSize="14sp" textColor="black" text="账号:" />
<input textSize="12sp" id="text_DaMaUserName" w="100" text="测试账号" />
<text textSize="14sp" textColor="black" marginLeft="20" text="密码:" />
<input textSize="12sp" id="text_DaMaPWD" w="100" " text="测试密码" />
</linear>
<linear marginLeft="8">
<text textSize="14sp" textColor="black" text="测试码:" />
<img src="file://.//res//testCodeImg.png" w="auto" h="auto" margin="8" />
<button id="OcrTest" text="点我测试" textSize="14sp" style="Widget.AppCompat.Button.Borderless.Colored" w="auto" />
</linear>
</vertical>
);
然后做了简单的UI
2020年03月16日 11点03分
5
level 2
ui.OcrTest.click(function () {
try {
threads.start(function ()
{
console.log("getCodeCopy(DaMaUserName, DaMaPWD, CodeImg).data.res");
});
catch (error)
{
console.log(error);
}});
然后通过UI点击调用,就报错了
2020年03月16日 11点03分
6
level 1
好像不能在ui里面进行json 操作,或者http 操作
2020年11月23日 06点11分
7