jquerymobile知识点五:动态Grid的绑定以及刷新
来源:互联网 发布:湖南自兴人工智能 编辑:程序博客网 时间:2024/06/05 17:54
下面jquerymobile是ajax动态绑定和刷新的例子。直接上图以及代码。
下面是实例代码:
//初始绑定 function GetInitBind(PageIndex, PageSize, sqlwhere, OrderType) { showLoading(); var adapGrid = $("#adapGrid"); $.ajax({ type: "POST", url: "/Ashx/YouHui.ashx?MethodName=GetSealsList&PageSize=" + PageSize + "&PageIndex=" + PageIndex + "&date=" + new Date().getTime() + "&SqlWhere=" + sqlwhere + "&OrderType=" + OrderType, data: "", dataType: "json", success: function (data) { data = eval(data); var strleft = ""; $.each(data.List, function (i, item) {//打折商品列表 if (i % 2 == 0) { strleft += "<div class='ui-block-a' style='height:100%'>"; strleft += "<img style='width:99%;' src='" + item.YouhuiFilepath + "'/>"; strleft += "<a class='descriptions'>"; strleft += "<p>剩余时间:" + unescape(item.Day) + "</p>"; strleft += "</a>"; strleft += "</div>"; } else { strleft += "<div class='ui-block-b' style='height:100%'>"; strleft += "<img style='width:99%;' src='" + item.YouhuiFilepath + "'/>"; strleft += "<a class='descriptions'>"; strleft += "<p>剩余时间:" + unescape(item.Day) + "</p>"; strleft += "</a>"; strleft += "</div>"; } }); adapGrid.append(strleft).trigger("create");//重要(刷新) }, error: function (data) { // $("#goodlist").html("数据有误!"); } }); hideLoading(); }
希望对初学者有所帮助。。。。
- jquerymobile知识点五:动态Grid的绑定以及刷新
- JQueryMobile listview动态刷新
- jquerymobile知识点二:动态ListView
- jqueryMobile的重要知识点
- jqueryMobile的重要知识点
- jquerymobile知识点四:select的动态帮定
- JqueryMobile动态生成listView并刷新的方法!
- Extjs创建form表单以及绑定动态数据到grid
- FineUI_动态绑定Grid
- jquerymobile动态添加元素之后样式刷新
- jQueryMobile的组件之栅格系统(grid)
- jquerymobile局部渲染的各种刷新
- jquerymobile局部渲染的各种刷新
- jquerymobile局部渲染的各种刷新
- jquerymobile局部渲染的各种刷新
- jquerymobile局部渲染的各种刷新
- jqueryMobile 动态添加元素,展示刷新视图方法
- javascript实现动态模态绑定grid
- JS执行本地文件代码
- 数据流图
- MPMoviePlayerViewController和MPMoviePlayerController
- SQLSERVER排查CPU占用高的情况
- 比较四个数字的大小
- jquerymobile知识点五:动态Grid的绑定以及刷新
- 初步使用Axis2集成到项目中
- android对话框弹出方式动画
- Phone/Mac Objective-C内存管理教程和原理剖析(三)@property (retain)和@synthesize的默认实现
- MFC窗口启动时隐藏
- 揭秘IT人才特点:中美印日四国程序员比较
- 阅读文献的三大问题:坐不住,记不住,想不开
- iPhone/Mac Objective-C内存管理教程和原理剖析(四)系统自动创建新的autorelease pool
- switch语句的初次运用