https://github.com/sandywalker/webui-popover
如是使用jquery,老式的引入方式
<link rel="stylesheet" href="/loft-desktop/webui-pop/webui-pop.min.css">
<script type="text/javascript" src="/loft-desktop/webui-pop/webui-pop.min.js"></script>
npm之类的引入请见上部链接
使用实例:
$("#id").webuiPopover(
{
title:popTitle,//标题
cache:true,
container: document.body,
content: contentStr,//内容
animation:'pop',
placement:'right-top',