DescriptionAfter winning gold and silver in IOI 2014, Akshat and Malvika want to have some fun. Now they are playing a game on a grid made ofnhorizont...
分类:
其他好文 时间:
2014-07-27 22:17:59
阅读次数:
309
SWTableViewCell 是托管在GitHub上的一个第三方UITableViewCell子类,它提供向左向右滑动出现“删除”,“更多”等自定义UIButton的功能,该功能类似于iOS7中的邮件中的Cell。GitHub主页:https://github.com/CEWendel/SWTa....
分类:
移动开发 时间:
2014-07-26 17:03:11
阅读次数:
344
Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.N...
分类:
其他好文 时间:
2014-07-26 01:42:16
阅读次数:
263
解决tableView中cell动态加载控件的重用问题tableView的cell,有时候需要在运行时取得对应的数据后才能够动态的创建该cell中的控件并加载到该cell中,此时,你一定会遇到重用问题,即使你能做到该cell只根据数值加载了一回控件,你也没法保证不出现重用问题:)效果(请注意查看,移...
分类:
其他好文 时间:
2014-07-26 01:18:26
阅读次数:
321
1.easyui获取datagrid分页组件的当前pageSize和pageNumber方法:var grid = $('#grid');var pager = grid.datagrid('getPager');var pageOpts = pager.data('pagination').opt...
分类:
其他好文 时间:
2014-07-25 19:06:32
阅读次数:
217
下面简单介绍常见的面板。 一、Grid 1.Grid关于调整行列距离有三种方法:绝对大小,自动大小,比例大小。如下: 2.LayoutRounding。像素细节问题,可忽略。如果呈现和布局应使用舍入到整像素,则为 true;否则为 false。用例: 3.跨行与跨列:RowSpan和ColSpan。...
分类:
其他好文 时间:
2014-07-25 14:16:01
阅读次数:
233
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).The robot can only move either down or right at any po...
分类:
其他好文 时间:
2014-07-25 10:54:31
阅读次数:
229
针对 TableView,有些时候需要在点击 cell 时,展开这行 cell,显现出更多的选项或者全部内容等。比较容易想到的处理方案就是利用 section,在未选择之前,每一行都是一个 section,待展开的内容都在这个 section 的 row 里面。在点击事件里,reload 当前选中的...
分类:
其他好文 时间:
2014-07-25 10:03:14
阅读次数:
222
Extjs textarea中主要的内容内容和配置项目:获得表单对象的方法:var meo = testForm.getForm().findField("memo");可以获得到表单对象findField通过查找页面中id可以查找到内容示例代码:Ext.onReady(function(){ Ex...
分类:
Web程序 时间:
2014-07-25 02:27:14
阅读次数:
452
PHP?? json_encode 处理汉字为空? 服务端JSON汉字编码 原因是这个汉字是gbk编码 , json只能处理utf-8的编码 ,所以要先将数据转码 用Extjs接收PHP服务端返回的Json结果时,发现只要是汉字(从SQLServer取得)都...
分类:
Web程序 时间:
2014-07-25 00:11:04
阅读次数:
260