我正在制作具有 xml 文件的 ssrs 报告。
我想从 xml 本身调用一个 javascript [for tooltip]。
我知道我可以将它放在要部署的页面中,但在我的特定场景中这是不可能的。
供参考:
javascript 用于工具提示及其使用 jQuery 和 css 文件。
它在 html、aspx 页面中工作正常。
脚本要包含的文件:
<link rel="stylesheet" type="text/css" href="http://.../SiteAssets/Styles/master.css" />
<link rel="stylesheet" type="text/css" href="http://.../SiteAssets/Styles/jquery.qtip.min.css" />
<link rel="stylesheet" type="text/css" href="http://.../SiteAssets/Styles/demos.css" />
脚本是:
$(document).ready(function () {
// We'll target all DIV elements with title tags.)
$('div[title]').qtip(
{
content: {
attr: 'title' // Use the jstooltip attribute of the area map for the content
},
style: {
classes: 'ui-tooltip-tipsy ui-tooltip-shadow'
}
});
});
</script>
任何想法/其他方式?