[英]Javascript: My setTimeout function not working because of 3rd party
[英]Spreading arrray elements into parameters in 3rd party function javascript
我正在Microsoft动态rms HTML中建立一个插件。 需要将参数附加到名为“ ShowMenu”的qsbridge函数中。
key = qsBridge.FireEvent("ShowMenu",
"My Menu", // Caption for the menu.
"ParmeterKeyString1", "ParameterValueString1", // Key/value pair for the first option.
"ParmeterKeyString2", "ParameterValueString2", // Key/value pair for the second option.
"ParmeterKeyString3", "ParameterValueString3"); // Key/value pair for the third option.
我的阵列大小可能未知
var my_array = ["ParamKey1","ParamValue1","ParmKey2","ParmValue2"];
我已经试过了
qsBridge.FireEvent("ShowMenu","My Menu",my_array);
我如何将my_array值散布到函数参数中?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.