webbrowser控件调用js的一个脚本
setCurrentList(formItemID, curList);
方法的实现在此:function setCurrentList (itemID, newList)
{
var cqFormItem = getCQFormItemFromItemID(itemID);
cqFormItem.setMultiValueFromArray(copyArray(newList));
cqFormItem.updateHTMLControlValueFromItem();
var listHTMLControl = document.getElementById(itemID);
populateDuplicateItems(itemID, listHTMLControl);
cqFormItem.hasChanged();
toggleLabel(cqFormItem.fieldName,
cqFormItem.valueIsEmpty(),
cqFormItem.behave);
}curList的类型是var newArray = new Array();
我要用C#的这个方法调用
webBrowser1.Document.InvokeScript("setCurrentList",args1);
这个参数我要怎么写才能给js传入Array类型的值
setCurrentList(formItemID, curList);
方法的实现在此:function setCurrentList (itemID, newList)
{
var cqFormItem = getCQFormItemFromItemID(itemID);
cqFormItem.setMultiValueFromArray(copyArray(newList));
cqFormItem.updateHTMLControlValueFromItem();
var listHTMLControl = document.getElementById(itemID);
populateDuplicateItems(itemID, listHTMLControl);
cqFormItem.hasChanged();
toggleLabel(cqFormItem.fieldName,
cqFormItem.valueIsEmpty(),
cqFormItem.behave);
}curList的类型是var newArray = new Array();
我要用C#的这个方法调用
webBrowser1.Document.InvokeScript("setCurrentList",args1);
这个参数我要怎么写才能给js传入Array类型的值
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货