"com.au"字符串显示为“(class)".在脚本编辑器中 [英] "com.au" string is displayed as "(class)" in Script Editor

查看:41
本文介绍了"com.au"字符串显示为“(class)".在脚本编辑器中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将澳大利亚域名存储为字符串.澳大利亚域名以".com.au"结尾

I need to store an Australian domain as a string. Australian domains end with ".com.au"

Google脚本似乎正在显示带有(类)"的".com.au"的所有实例.

Google Scripts seems to be displaying all instances of ".com.au" with "(class)".

要进行复制,请在Google Apps脚本中创建一个基本功能,如下所示:

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的错误:

This issue was reported as a bug to Google: https://issuetracker.google.com/issues/114358543

这篇关于"com.au"字符串显示为“(class)".在脚本编辑器中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆