Character encoding 如何在所选Jquery上设置字符集?
在所选组件()的这部分代码中,我将其翻译成葡萄牙语,并使用“ç”和“ã”这两个字符 浏览器正在呈现一个“?” 我尝试使用html代码来处理这些字符,但没有成功Character encoding 如何在所选Jquery上设置字符集?,character-encoding,special-characters,jquery-chosen,Character Encoding,Special Characters,Jquery Chosen,在所选组件()的这部分代码中,我将其翻译成葡萄牙语,并使用“ç”和“ã”这两个字符 浏览器正在呈现一个“?” 我尝试使用html代码来处理这些字符,但没有成功 您可以尝试导入所选的.js文件,添加字符集标记,如下所示 <script type="text/javascript" src="http://harvesthq.github.io/chosen/chosen.jquery.js" charset="utf-8"> </script> 我只是让它起作用
您可以尝试导入所选的.js文件,添加字符集标记,如下所示
<script type="text/javascript"
src="http://harvesthq.github.io/chosen/chosen.jquery.js"
charset="utf-8">
</script>
我只是让它起作用:
<script>
$(document).ready(function () {
$(document).tooltip();
$(".chosen-select").chosen({
allow_single_deselect: true,
disable_search_threshold: 10,
no_results_text: 'Nada encontrado!',
placeholder_text_single: 'Selecione uma opção',
placeholder_text_multiple: 'Selecione as opções',
width: "200px"
});
$('.chosen-results').css({ "max-height": "100px" });
});
</script>
$(文档).ready(函数(){
$(document.tooltip();
$(“.select选择”)。已选择({
允许单次取消选择:true,
禁用搜索阈值:10,
无结果文本:“Nada encontrado!”,
占位符_text_single:“Selecione uma opço”,
占位符_text_multiple:“选择作为opções”,
宽度:“200px”
});
$('.selected results').css({“最大高度”:“100px”});
});
<script>
$(document).ready(function () {
$(document).tooltip();
$(".chosen-select").chosen({
allow_single_deselect: true,
disable_search_threshold: 10,
no_results_text: 'Nada encontrado!',
placeholder_text_single: 'Selecione uma opção',
placeholder_text_multiple: 'Selecione as opções',
width: "200px"
});
$('.chosen-results').css({ "max-height": "100px" });
});
</script>