gpt4 book ai didi

javascript - 为什么 ckeditor 不支持 <> 之间的 dropvalue?

转载 作者:行者123 更新时间:2023-11-30 16:36:12 25 4
gpt4 key购买 nike

我在 CKEditor 文件 plugin.js 中使用这段代码来显示下拉列表的值。

strings.push(['<<<EmpFname>>>', 'Career Profiles', 'Career Profiles']);

但在浏览器中它只显示<< >>为什么?我要<<<EmpFname>>>在浏览器中怎么办?

最佳答案

发生这种情况是因为 < 和 > 是 HTML 特殊字符。你必须使用 HTML code对于这样的每个字符:

strings.push(['&lt;&lt;&lt;EmpFname&gt;&gt;&gt;', 'Career Profiles', 'Career Profiles']);

&lt; >代码是&gt; .

关于javascript - 为什么 ckeditor 不支持 <> 之间的 dropvalue?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32668406/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com