当我们不启用浏览器自定义格式化工具,输出 Ref 或者 Reactive 类的值出输出完整的返回值对象,而且 value 值需要再次点击才可以得到。

为了解决这个问题,我们可以开启浏览器自定义格式化工具。
点击 setting 齿轮

依次找到 preference -> console -> Enable custom formatters 并勾选。

然后控制台就可以直接输出格式化后的 Ref 或者 Reactive 类的值。

当我们不启用浏览器自定义格式化工具,输出 Ref 或者 Reactive 类的值出输出完整的返回值对象,而且 value 值需要再次点击才可以得到。
为了解决这个问题,我们可以开启浏览器自定义格式化工具。
点击 setting 齿轮
依次找到 preference -> console -> Enable custom formatters 并勾选。
然后控制台就可以直接输出格式化后的 Ref 或者 Reactive 类的值。