Lit Prism 的使用方法详解,最全面的教程
Lit Prism 描述：
Lit Prism 插件简介：
这是来自Chrome商店的 Lit Prism 浏览器插件，您可以在当前页面下载它的最新版本安装文件，并安装在Chrome、Edge等浏览器上。
(2) 从设置->更多工具->扩展程序 打开扩展程序页面，或者地址栏输入 Chrome://extensions/ 按下回车打开扩展程序页面
Inspect LitElement or PolymerElement webcomponents 'through a prism'. View and modify component properties on the fly through Chrome Developer Tools.
Open the developer tools (F12) and select the Lit Prism sidepane from within the Elements panel. Select an HTML element from the Elements panel in order to view its properties. Currently supported webcomponents are LitElement and PolymerElement components.
The list of properties will refresh automatically whenever a property or a subproperty value changes, and the sidepane will keep the current scroll position.
Due to a developer tools limitation the expanded values cannot be re-expanded after updating the property list. In such cases, it might be useful to toggle the "Automatically refresh property list' switch to 'disabled'.
No data is or will be collected.
v1.1.1 Minor tweak, added the Lit Message also to arrays, as a first entry, in case it was an array, instead of an object, which contained a circular reference.
v1.1.0 Fixed issue regarding high resource consumption, due to the long process of depth-limited stringification process. Components whose integral list of properties can easily be stringified are returned instantly. For components which contain properties with circular references, the individual data props are analyzed, and only those are truncated, which have circular references. The rest of the props are returned as-is, irrelevant of the depth. An informative message is prepended as a sub-value to the truncated props. Props that are undefined are also listed now, with having the value "undefined" as a string.
v1.0.3 Fixed a bug because of which some Polymer properties which were specified in the component's static properties getter were not listed in the sidepane. Swapped the safeStringify method with an alternative one, which supports depth specification, thus, effectively limiting the JSON stringification process, avoiding endless circular references.
v1.0.2 Fixed a bug because of which array properties of Polymer components were not listed in the sidepane.
Marketplace searchable tags:
litelement, lit-element, lit element, polymerelement, polymer-element, polymer element