Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
autojs不能直接為函數的參數指定預設值,只能採用變通的方法。
function multiply(a, b) { b = (typeof b !== 'undefined') ? b : 1; return a * b; }
multiply(5, 2); // 10 multiply(5, 1); // 5 multiply(5); // 5