Office js 在“函数参数说明”对话框中编码特殊字符
我一直在开发一个excel加载项。自定义函数可以工作。除此之外,我还可以在“fx”函数参数对话框中插入此函数,但特殊字符不起作用。它们看起来像这样: XML文件导入HTML、Js和JSON文件。HTML导入javascript并带有标签Office js 在“函数参数说明”对话框中编码特殊字符,office-js,custom-functions-excel,Office Js,Custom Functions Excel,我一直在开发一个excel加载项。自定义函数可以工作。除此之外,我还可以在“fx”函数参数对话框中插入此函数,但特殊字符不起作用。它们看起来像这样: XML文件导入HTML、Js和JSON文件。HTML导入javascript并带有标签 在XML文件中有这样一行: 看了这篇文章,我尝试了几种变体,但都没有成功: 你能给我指路吗 Js功能: /** * Add two numbers * @customfunction * @param {number} first First num
在XML文件中有这样一行:
看了这篇文章,我尝试了几种变体,但都没有成功:
你能给我指路吗
Js功能:
/**
* Add two numbers
* @customfunction
* @param {number} first First number
* @param {number} second Nomenclatura que reúne informações essenciais sobre uma série temporal
* @returns {number} The sum of the two numbers.
*/
function ADD(first, second) {
return first + second;
}
Json:
您是否仅在英语环境下尝试过?英语也有同样的问题吗?我意识到这个错误发生在VisualStudio2019社区。我尝试了Vs代码,它很有效。
{
"functions": [
{
"description": "Add two numbers",
"id": "ADD",
"name": "ADD",
"parameters": [
{
"description": "First number",
"name": "first",
"type": "number"
},
{
"description": "Nomenclatura que reúne informações essenciais sobre uma série temporal",
"name": "second",
"type": "number"
}
],
"result": {
"type": "number"
}
}]
}