var str = "name=giserDev&age=18";
var obj = Ext.Object.fromQueryString(str);
alert(Ext.encode(obj));
toQueryObjects
var obj = {
name:'张三',
age:20,
fav:{
fav1:'sleep',
fav2:'paly',
fav3:'eat'
}
};
var arr = Ext.Object.toQueryObjects("user", obj, true);
console.info(arr);
toQueryString
var obj = {
name:'李四',
age:30
};
var str = Ext.Object.toQueryString(obj);
alert(str);
Ext.Number相关的方法使用
// Checks whether or not the passed number is within a desired range.
alert(Ext.Number.constrain(5, 0, 10));
alert(Ext.Number.randomInt(1,30));
alert(Ext.Number.toFixed(3.1415926, 3));