自定义函数 JSA_E_ENCODEURL 返回URL编码的字符串
function JSA_E_ENCODEURL(str) {
str = str.valueOf();
return encodeURIComponent(str);
}插入函数对话框、函数参数对话框:
加载宏文件function Workbook_Open(){}中添加以下代码。
Application.MacroOptions("JSA_E_ENCODEURL", "返回URL编码的字符串。", undefined, undefined, undefined, undefined, 14, undefined, undefined, undefined, ["字符串。"]);