save all
This commit is contained in:
+19
-1
@@ -366,12 +366,30 @@
|
||||
}
|
||||
|
||||
var path2 = $("#path2").val();
|
||||
check(path2, /^([A-Fa-f0-9][A-Fa-f0-9]){16}$/g, "特征字串填充错误")
|
||||
check(path2, /^([A-Fa-f0-9][A-Fa-f0-9]){4}$/g, "特征字串2填充错误")
|
||||
|
||||
var path3 = $("#path3").val();
|
||||
check(path3, /^([A-Fa-f0-9][A-Fa-f0-9]){16}$/g, "特征字串3填充错误")
|
||||
|
||||
var path4 = $("#path4").val();
|
||||
check(path4, /^([A-Fa-f0-9][A-Fa-f0-9]){4}$/g, "特征字串4填充错误")
|
||||
|
||||
var path5 = $("#path5").val();
|
||||
check(path5, /^([A-Fa-f0-9][A-Fa-f0-9]){16}$/g, "特征字串5填充错误")
|
||||
|
||||
ic.writeHex(0x20, path1)
|
||||
.then(function (def){
|
||||
return ic.writeHex(0x30, path2)
|
||||
})
|
||||
.then(function (def){
|
||||
return ic.writeHex(0x40, path3)
|
||||
})
|
||||
.then(function (def){
|
||||
return ic.writeHex(0x50, path4)
|
||||
})
|
||||
.then(function (def){
|
||||
return ic.writeHex(0x60, path5)
|
||||
})
|
||||
.then(function (def){
|
||||
success("写入成功")
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user