当你在 Chrome Devtools 中记录一个 JS 对象时,带下划线的属性是什么意思
What do the underscored properties mean when you log a JS object in Chrome Devtools
看下图明白我的意思
表示属性是"private",是开发者约定的。
查看更多相关信息:https://developer.mozilla.org/en-US/Add-ons/SDK/Guides/Contributor_s_Guide/Private_Properties#Using_Prefixes
我不推荐使用这些属性,因为它们可能会在下一个 Leaflet 版本中发生变化(有时我记得它会发生)。
看下图明白我的意思
表示属性是"private",是开发者约定的。 查看更多相关信息:https://developer.mozilla.org/en-US/Add-ons/SDK/Guides/Contributor_s_Guide/Private_Properties#Using_Prefixes
我不推荐使用这些属性,因为它们可能会在下一个 Leaflet 版本中发生变化(有时我记得它会发生)。