日期:2014-05-16  浏览次数:20353 次

在js里边不能用中文
本帖最后由 wrost 于 2013-08-17 19:40:14 编辑

我是用一个图片画廊jq插件,里边有些提示,我想改成中文,结果出现乱码

我该怎么做?

http://galleria.io/



    _locale: {
        show_captions: 'Show captions',
        hide_captions: 'Hide captions',
        play: 'Play slideshow',
        pause: 'Pause slideshow',
        enter_fullscreen: 'Enter fullscreen',
        exit_fullscreen: 'Exit fullscreen',
        next: 'Next image',
        prev: 'Previous image',
        showing_image: 'Showing image %s of %s'
    }



完整的

/* Galleria Azur Theme 2012-08-09 | http://galleria.io/license/ | (c) Aino */(function (a) { 
Galleria.addTheme({ name: "azur", author: "Galleria", css: "galleria.azur.css", defaults: { 
transition: "fade", transitionSpeed: 500, imageCrop: !1, thumbCrop: "height", idleMode: "hover",
 idleSpeed: 500, fullscreenTransition: !1, _locale: { show_captions: "Show captions", 
hide_captions: "Hide captions", play: "Play", pause: "Pause", enter_fullscreen: "Fullscreen", 
exit_fullscreen: "Quitter plein ecran", next: "Next", prev: "Previous", showing_image: "Image %s 
sur %s" }, _toggleCaption: !0, _showCaption: !0, _showTooltip: !0 }, init: function (b) { 
Galleria.requires(1.28, "This version of Azur theme requires Galleria version 1.2.8 or later"), 
this.addElement("bar", "fullscreen", "play", "progress").append({ stage: "progress", container: 
"bar", bar: ["fullscreen", "play", "thumbnails-container"] }).prependChild("stage", 
"info").appendChild("container", "tooltip"); var c = this, d = window.document, e = b._locale, f
 = "getContext" in d.createElement("canvas"); (function () { if (!f) { 
c.addElement("progressbar").appendChild("progress", "progressbar"),