You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
575 B
575 B
title | description |
---|---|
插件 | 插件 - PluginFinder |
available(pluginName)
pluginFinder.available(pluginName)
描述
判断一个插件是否可用,会同时判断插件是否安装和启用。
参数
pluginName:string
- 插件的唯一标识metadata.name
。
返回值
boolean
- 插件是否可用
示例
<!-- https://github.com/halo-sigs/plugin-search-widget -->
<li th:if="${pluginFinder.available('PluginSearchWidget')}">
<a href="javascript:SearchWidget.open()" title="搜索">
搜索
</a>
</li>