Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/88.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery 如何更改Bootstrap Star Rating的语言_Jquery_Twitter Bootstrap_Twitter Bootstrap 3 - Fatal编程技术网

Jquery 如何更改Bootstrap Star Rating的语言

Jquery 如何更改Bootstrap Star Rating的语言,jquery,twitter-bootstrap,twitter-bootstrap-3,Jquery,Twitter Bootstrap,Twitter Bootstrap 3,我尝试了很多东西,但都没能改变语言。它坚持用英语 首先,我将这三个文件添加到本地 star-rating.css star-rating.js de.js(它是语言包) 那么如何激活语言呢?我阅读了这份文件,但没有帮助我理解如何做 我想您需要使用类似于否的东西。不起作用。嗯,似乎是个bug,请尝试联系脚本作者或更改为另一个脚本 <link href="~/Content/Star/star-rating.css" media="all" rel="stylesheet" type="t

我尝试了很多东西,但都没能改变语言。它坚持用英语

首先,我将这三个文件添加到本地

star-rating.css

star-rating.js

de.js(它是语言包)


那么如何激活语言呢?我阅读了这份文件,但没有帮助我理解如何做


我想您需要使用类似于
否的东西。不起作用。嗯,似乎是个bug,请尝试联系脚本作者或更改为另一个脚本
<link href="~/Content/Star/star-rating.css" media="all" rel="stylesheet" type="text/css" />
<script src="~/Content/Star/star-rating.js" type="text/javascript"></script>
<script src="~/Content/Star/de.js"></script>
$("#rating").rating({size:'md',language:'de'});