New Document
function onLoad(){
resizeCanvas();
initPageObjects();
}
/**
* Resizes the main canvas to the maximum visible height.
*/
function resizeCanvas()
{...
分类:
Web程序 时间:
2015-06-15 14:38:26
阅读次数:
125
display:定义元素以 块还是行内元素显示,常用的有以下几种。none:不显示,也不保留其在页面中的位置;而visible:hidden虽然隐藏,但该对象在网页上所占的空间没有改变。block:块级元素,每个元素默认占据一行。是div、h等块级元素的默认值;inline:行内元素,与其他元素在一...
分类:
Web程序 时间:
2015-06-13 19:58:21
阅读次数:
223
$(".sort_Panel:hidden").size();//查找隐藏的元素--------------------------------------------$(".sort_Panel:visible").size();//查找显示的元素
分类:
Web程序 时间:
2015-06-08 14:44:06
阅读次数:
257
//onchange事件
$("._numberbox").numberbox({
????onChange:function(newValue,oldValue)
????{......}
)}
//键盘事件
?var?inputs?=?$("#flcs_table").find(‘input:visible.easyui-numberbox‘);
?...
分类:
其他好文 时间:
2015-06-08 11:48:46
阅读次数:
129
其在XML文件和Java代码中设置如下: ? ? 可见(visible) XML文件:android:visibility="visible" Java代码:view.setVisibility(View.VISIBLE); ? 不可见(invisible) XML文件:android:visibility="invisib...
分类:
移动开发 时间:
2015-06-05 12:34:16
阅读次数:
138
前几天有一个电话面试,被问到Android的进程优先级,当时差点没反应过来,还好在面试官即将跳过这道题时想起来了。
Android 把进程分成了一些优先级,从高到低分别是:
1、前台进程(Foreground)
比如我们正在看书,那么看书的程序就是前台进程,这些进程是不会被系统优先结束的。当我把它切到后台的时候,它就变成后台进程了。
2、可见进程(Visible)
输...
分类:
移动开发 时间:
2015-06-04 09:58:59
阅读次数:
150
题意:给n个点的坐标,求距离最近的一对点之间距离的一半。
分析:分治法求最近点对。
#include
#include
#include
using namespace std;
#define N 100005
double min(double a,double b)
{
return a<b?a:b;
}
struct POINT
{
double x,y;
};
POIN...
分类:
其他好文 时间:
2015-06-03 15:54:03
阅读次数:
135
我目前移动Web开发遇到的bug以及解决方案(慢慢补充当中)。1.android4.0以上一部分手机的webview中,当canvas小于屏幕大小时,绘图时会出现重影,就是说一个图只绘制了一遍,却出现了两个。解决方案:canvas外层的div需要设定属性style="overflow:visible...
分类:
移动开发 时间:
2015-06-01 14:33:15
阅读次数:
140
Starting in the top left corner of a 2×2 grid, and only being able to move to the right and down, there are exactly 6 routes to the bottom right corner.
How many such routes are there through a 20×...
分类:
其他好文 时间:
2015-05-31 09:26:08
阅读次数:
135
Horizontally Visible SegmentsTime Limit:5000MSMemory Limit:65536KTotal Submissions:4507Accepted:1662DescriptionThere is a number of disjoint vertical ...
分类:
其他好文 时间:
2015-05-29 15:37:36
阅读次数:
104