Skip to content

Instantly share code, notes, and snippets.

@junichiro
Created January 29, 2010 02:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save junichiro/289401 to your computer and use it in GitHub Desktop.
Save junichiro/289401 to your computer and use it in GitHub Desktop.
var MYAPP = {};
MYAPP.util = {
getData: function ( arg ) {
var query_string = window.document.location.href.split('?')[1];
var datas = query_string.split('&');
var tmp, result, i;
for(i=0; i<datas.length; i++) {
tmp = datas[i].split('=');
result[tmp[0]] = tmp[1];
}
return result;
}
};
MYAPP.example = {
getTest: function ( arg ) {
var data = MYAPP.util.getData();
}
}
$(document).ready(function(){
MYAPP.example.getTest();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment