在console.log()或console.debug()中输出时会有%d,%s等符号。

%s for a String value 字符类型

%d or %i for a Integer value 整型

%f for a Floating point number 浮点类型number

%o for an Object hyperlink 对象类型超链接

console.log()中的%d,%s等代表的输出类型

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-13
  • 2021-10-03
  • 2021-12-12
  • 2022-12-23
  • 2022-12-23
  • 2021-10-11
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-29
  • 2022-12-23
相关资源
相似解决方案