“com.au"字符串显示为“(类)";在脚本编辑器中 [英] "com.au" string is displayed as "(class)" in Script Editor
问题描述
我需要将澳大利亚域存储为字符串.澳大利亚域名以.com.au"结尾
I need to store an Australian domain as a string. Australian domains end with ".com.au"
Google Scripts 似乎显示所有带有(class)"的.com.au"实例.
Google Scripts seems to be displaying all instances of ".com.au" with "(class)".
要重现,请在 Google Apps Scripts 中创建一个基本函数,如下所示:
To reproduce, create a basic function in Google Apps Scripts as follows:
function myFunction() {
var x = "com.au";
console.log("x: " + x);
var z = 1; //<--create break point here
}
在var z = 1
处创建断点,然后调试脚本.
Create a breakpoint at var z = 1
, and then debug the script.
实际结果:
在控制台中(在断点处):
In the console (at breakpoint):
x: (class)
预期结果:
x: "com.au"
*注意:在进一步的测试中,从实际的角度来看,(class)"似乎仍然被视为com.au",所以这不是一个可以使用的拦截器,但它很奇怪并且在调试时没有帮助.
*Note: upon further testing, from a practical perspective, "(class)" seems to still be treated as "com.au" so this is not a blocker to use, but it is odd and does not help when debugging.
推荐答案
此问题已作为错误报告给 Google:https://issuetracker.google.com/issues/114358543
This issue was reported as a bug to Google: https://issuetracker.google.com/issues/114358543
这篇关于“com.au"字符串显示为“(类)";在脚本编辑器中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!