Opposite of Ext.urlEncode? - Ext JS

本文探讨了使用URL哈希字符串存储查询参数的方法,这种方法能够帮助实现AJAX应用中的浏览器历史记录管理,使得应用程序能够在不刷新页面的情况下更新浏览器地址栏,并支持书签和收藏夹功能。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

I've been using Prototype's String.toQueryParams (http://www.prototypejs.org/api/string/toQueryParams) for quite some time. You pass a query string and it returns an object.

Now I know we all have Ext.urlEncode, which effectively does the opposite, pass and object, returns a string. Is there anything in Ext which currently does the reverse of this, like Prototype's func?
Reply With Quote
  #2  
Old 03-07-2007, 03:51 AM
Default

There isn't a function for it in Ext. Personally, I have never needed it. What are you using it for?
Reply With Quote
  #3  
Old 03-07-2007, 06:12 AM
Default

I'm storing some values in querystring format in the hash string of the url, this allows for some quick and easy browser history abstraction for ajax applications that don't change the url. Simply monitor changes in the url's hashstring and parse it accordingly, this also makes handling bookmarking/favorites easily.
Reply With Quote
  #4  
Old 03-07-2007, 11:47 PM
Default

Have you ever checked out the YUI History stuff? It uses the same type of history abstraction I'm currently in the process of implementing using Ext.

http://developer.yahoo.com/yui/examp...bar/index.html
Reply With Quote
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值