Skip to content

Commit 4e99f37

Browse files
author
hooray
committed
更新js
1 parent e4c00a1 commit 4e99f37

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

static/js/hros.base.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,15 +121,15 @@ HROS.base = (function(){
121121
},
122122
getParameter: function(){
123123
var url = location.search;
124-
var request = new Object();
124+
var parameter = new Object();
125125
if(url.indexOf('?') != -1){
126126
var str = url.substr(1);
127127
strs = str.split('&');
128128
for(var i = 0; i < strs.length; i++){
129-
request[strs[i].split('=')[0]] = unescape(strs[i].split('=')[1]);
129+
parameter[strs[i].split('=')[0]] = decodeURIComponent(strs[i].split('=')[1]);
130130
}
131131
}
132-
return request;
132+
return parameter;
133133
}
134134
}
135135
})();

static/js/hros.templates.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ HROS.template = (function(){
1212
}else{
1313
$.ajax({
1414
type: 'GET',
15-
url: 'static/template/' + path + '?' + new Date().getTime(),
15+
url: location.origin + 'static/template/' + path + '?' + new Date().getTime(),
1616
dataType: 'text',
1717
async: false
1818
}).done(function(cb){

static/plugins/HoorayLibs/hooraylibs.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)