ExtJS querystring 조회!
JavaScript/ExtJS / 2009. 9. 7. 11:32
ExtJS 에서 GET 방식으로 넘어온 파라미터를 조회하는 방식입니다.
var pageParameters = Ext.urlDecode(window.location.search.substring(1));
Ext.urlDecode 함수를 사용합니다~
출처: http://www.extjs.com/deploy/ext/docs/output/Ext.html
urlDecode
public function urlDecode( String string
, [Boolean overwrite
] )
Takes an encoded URL and and converts it to an object. e.g. Ext.urlDecode("foo=1&bar=2"); would return {foo: 1, bar: 2} or Ext.urlDecode("foo=1&bar=2&bar=3&bar=4", true); would return {foo: 1, bar: [2, 3, 4]}.
Parameters:
string
: Stringoverwrite
: Boolean(optional) Items of the same name will overwrite previous values instead of creating an an array (Defaults to false).
Object
A literal with members
This method is defined by Ext.
ㅋㅋㅋㅋㅋ