te')); return $arr; } /* 遍历用户所有主题 * @param $uid 用户ID * @param int $page 页数 * @param int $pagesize 每页记录条数 * @param bool $desc 排序方式 TRUE降序 FALSE升序 * @param string $key 返回的数组用那一列的值作为 key * @param array $col 查询哪些列 */ function thread_tid_find_by_uid($uid, $page = 1, $pagesize = 1000, $desc = TRUE, $key = 'tid', $col = array()) { if (empty($uid)) return array(); $orderby = TRUE == $desc ? -1 : 1; $arr = thread_tid__find($cond = array('uid' => $uid), array('tid' => $orderby), $page, $pagesize, $key, $col); return $arr; } // 遍历栏目下tid 支持数组 $fid = array(1,2,3) function thread_tid_find_by_fid($fid, $page = 1, $pagesize = 1000, $desc = TRUE) { if (empty($fid)) return array(); $orderby = TRUE == $desc ? -1 : 1; $arr = thread_tid__find($cond = array('fid' => $fid), array('tid' => $orderby), $page, $pagesize, 'tid', array('tid', 'verify_date')); return $arr; } function thread_tid_delete($tid) { if (empty($tid)) return FALSE; $r = thread_tid__delete(array('tid' => $tid)); return $r; } function thread_tid_count() { $n = thread_tid__count(); return $n; } // 统计用户主题数 大数量下严谨使用非主键统计 function thread_uid_count($uid) { $n = thread_tid__count(array('uid' => $uid)); return $n; } // 统计栏目主题数 大数量下严谨使用非主键统计 function thread_fid_count($fid) { $n = thread_tid__count(array('fid' => $fid)); return $n; } ?>javascript - Lightweight UI Framework for JSHTML5 Webkit-based mobile development with decent list performance - Stack Overflow
最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Lightweight UI Framework for JSHTML5 Webkit-based mobile development with decent list performance - Stack Overflow

programmeradmin3浏览0评论

My question is slightly different from Looking for a remendation for a lightweight mobile HTML5/JavaScript framework

I'm joining a JS/HTML5 project that is targeting the ipad, currently using Backbone.js for MVC and Zepto for dom manipulation. They've experimented with jQuery mobile and found the list performance to be underwhelming.

Basically I'm looking for an alternative mobile Javascript UI framework with a non-viral OS license (Sencha seems out with gpl 3, and I'd like something focused purely on ui widgets), which provides performant dynamic lists and a general set of iOS style ui widgets. I do have experience with enyo, but I don't particularly like it, so that's out of the question as well.

Any suggestions?

My question is slightly different from Looking for a remendation for a lightweight mobile HTML5/JavaScript framework

I'm joining a JS/HTML5 project that is targeting the ipad, currently using Backbone.js for MVC and Zepto for dom manipulation. They've experimented with jQuery mobile and found the list performance to be underwhelming.

Basically I'm looking for an alternative mobile Javascript UI framework with a non-viral OS license (Sencha seems out with gpl 3, and I'd like something focused purely on ui widgets), which provides performant dynamic lists and a general set of iOS style ui widgets. I do have experience with enyo, but I don't particularly like it, so that's out of the question as well.

Any suggestions?

Share Improve this question edited May 23, 2017 at 10:28 CommunityBot 11 silver badge asked Mar 24, 2012 at 22:33 GopherkhanGopherkhan 4,3424 gold badges35 silver badges54 bronze badges
Add a ment  | 

6 Answers 6

Reset to default 7 +75

Try Chocolate Chip UI - BSD Licence too.

Discussing performance - on the iPad, don't forget that if you want to have hardware accelerated CSS transforms (you want this), then you must be using webkit transforms / translates etc. Thomas Fuchs (author of Zepto/scriptaculous) wrote up a pretty good article talking about these issues, which I would suggest is essential reading, despite being from 2010.

I am in an almost identical situation, having used jQueryMobile for nearly a year, and finding myself pletely unimpressed at this point. I have to say that I'm extremely exited for Lungo. The UI looks fantastic and is coded semantically.

In fact the whole framework has a superior construction quality and is highly optimized for mobile. It doesn't carry a huge footprint like JQM, the underlying QuoJS library is very powerful and provides nearly all the same idioms as jQuery. There is an app demo here.

There is a new interesting framework, Jo, but I haven't looked too much into it. It could be a good choice.

I'm also liking another unique library called Topcoat.io because it's only CSS based, with no assumptions. Very clean and performant.

This site gives all the options regarding mobile JS framework

http://sixrevisions./javascript/mobile%C2%A0web-development-frameworks/

But my suggestion is go for JQuery Mobile

jQuery Mobile 1.1.0 [1] looks pretty nice. Much better performance than previous versions, focused on widgets, and dual licensed under the MIT or GPL Version 2 licenses.

Actually it's on RC1 state, but hopefully we'll get final release soon.

I'm sure you already know jQuery Mobile (who doesn't? :P), but maybe you should try this new version, just to test new performance.

[1] http://jquerymobile./demos/1.1.0-rc.1/

You could also do your dom with HTML and then use nativecss for your styling, of course with cordova in the bonnet.

If you are interested in performance, I suggest Jquery Mobile

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论