简写代码:
if (LODOP.CVERSION) CLODOP.On_Return = function (TaskID, Value) { document.getElementById('S1').value = Value; console.log(TaskID); console.log(Value) };
转标准写法:
CLODOP.On_Return(TaskID, Value) {
document.getElementById('S1').value = Value;
console.log(TaskID);
console.log(Value);
}
只看函数部分标准部分
总是报语法错:
没懂你为什么把
= function
部分删除了。