easyui 换皮肤自己实现了,但是下次打开浏览器的时候,上次选中的皮肤又变回默认皮肤
了,怎样让浏览器记住自己所选的皮肤。这里我给出我的解决方案。
注:引入 JS 的顺序 jquery>cookie>easyuicss>changeEasyUITheme.js
首先将 easyui 的样式文件加入一个 ID,这里命名为 easyuiTheme,然后在样式文件下面加
入一个 JS 文件
更换主题
!"# $%&'''
#
("
") ''
*+
,$ #
-
-
.##
%/01
-
-
-
jquery.cookie.js 的内容是
jQuery.cookie = function (key, value, options) {
// key and value given, set cookie...
if (arguments.length > 1 && (value === null || typeof value !== "object")) {
options = jQuery.extend({}, options);
if (value === null) {
options.expires = -1;
}