javascript - 条形图中的提示未显示 html 特殊字符中包含的文本,例如 <cable>

标签 javascript jquery wijmo

提示未显示“<”和“>”之间的文本

require(["wijmo.wijbarchart"], function () {$(document).ready(function () {
$("#wijbarchart").wijbarchart({
hint: {
content: function () {return  this.x + '<cable>' + '\n ' + this.y + '';}
/* here the axis labels enclosed in < and > are not displaying.*/
}

条形图中的提示未显示 html 特殊字符 < 和 > 中包含的文本

最佳答案

我认为是三 Angular 括号把它塞满了。尝试没有它们。如果有效,那么您需要转义括号。

&lt;  and    &gt;

给你

'&lt;cable&gt;'

关于javascript - 条形图中的提示未显示 html 特殊字符中包含的文本,例如 <cable>,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33032286/

相关文章:

javascript - 如何防止/覆盖 Safari 中的授权 header ?

css - 在 wijmo.css 中为 slider 的开始和结束计时器使用不同的颜色

html - 根据 HTML 页面中加载的控件加载 JS & CSS

javascript - onkeydown keydown :37 not working as expected

javascript - 返回结果代替 JavaScript 函数中的 false

javascript - 在 angularjs 中使用 wijmo 事件日历

javascript - 向表单添加样式

javascript - polymer 不使用 polymer 服务加载 ts web 组件

javascript - Mirage 的简单 Ember 数据问题(错误 : Encountered a resource object with an undefined type )

javascript - 带有 uikit 的粘性图像