开发者

Combining Sencha Touch with jQuery

开发者 https://www.devze.com 2023-02-17 11:31 出处:网络
I have been working in Sencha Touch for a few weeks now, and while the framework is very powerful, I still find areas of it difficult to work with, particularly the JSONP data stores for complex 开发者

I have been working in Sencha Touch for a few weeks now, and while the framework is very powerful, I still find areas of it difficult to work with, particularly the JSONP data stores for complex 开发者_如何学编程nested JSON results. As a result, I decided to combine the useful AJAX and JSON functions of jQuery for adding items to a DataStore already coded in Sencha Touch.

I just wondered if anyone else has similar difficulties with the API for Sencha Touch, and has been using jQuery with the framework. What are the performance implications of this, and is it advisable to use only Sencha Touch methods?


I am including jQuery in my Sencha Touch based application and so far haven't seen any problems with it. I'm using jQuery mostly for accessing and updating values in my custom HTML code (e.g. stuff inside the html attribute of a Sencha Touch component).

It will naturally be more heavy if you include another library (jQuery) but the difference in performance is not noticeable in my opinion. I have only however tested on the browser and not on a mobile device. The difference in performance could be more noticeable if the user is using a 3G connection on a mobile device.

But if I were you, I would probably use the existing API when it comes to adding/removing stuff from a DataStore. Which part do you find difficult in using a DataStore with the existing API?

0

精彩评论

暂无评论...
验证码 换一张
取 消