webbroser控件给js传值的问题
webbrowser控件调用js的一个脚本
setCurrentList(formItemID, curList);
方法的实现在此:
- JScript code
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类型的值
[解决办法]
http://blog.csdn.net/zys2008003/article/details/5486814
[解决办法]
写个字符串,传给js,在js方法中解析成js的array