第一种@using (Html.BeginForm("ProdPromotionEdit", "Product", FormMethod.Post, new { onsubmit = "return check()" }))第二种第三种jquery$("#xxxform").submit(funct...
分类:
Web程序 时间:
2014-06-18 22:41:12
阅读次数:
295
#include typedef GLfloat point2d[2]; // a point data type void triangle( point2d a, point2d b, point2d c) // display a triangle { glBegin(GL_TRIANGLES...
分类:
其他好文 时间:
2014-06-18 21:02:32
阅读次数:
334
1、变量和常量:全局变量用$; 实例变量用@; 类变量用@@;Local Variable: name fish_and_chips x_axis thx1138 _x _26Instance Variable: @name @point_1 @X @_ @plan9Class Variable.....
分类:
其他好文 时间:
2014-06-18 17:13:55
阅读次数:
245
1、生成动态链接库[root@typhoeus79 c]# more head.c #include #include typedef struct _point{ int x; int y;}Point;Point * InitPoint(int x,int y){ Point ...
分类:
编程语言 时间:
2014-06-18 15:45:00
阅读次数:
267
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: 1 / \ ...
分类:
其他好文 时间:
2014-06-18 13:29:31
阅读次数:
214
Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally identical an...
分类:
其他好文 时间:
2014-06-18 12:32:58
阅读次数:
169
二分算法求最值,掌握了算法的本质和模板,主要就是答案验证过程,验证过程经常使用贪心算法。关键是根据题目要求设立命题check(x)。验证答案mid:Check(mid):是否成立?求满足条件Check(mid)的最小值:–if check(mid) then r:=mid else l:=mid+1...
分类:
其他好文 时间:
2014-06-17 21:19:25
阅读次数:
170
SHP导入POSTGIS数据库引用直接导入数据库 shp2pgsql-I-s2437-WGBKshop_point.shppublic.ntable|psql-Upostgres-w-djwsz 导出sql再导入数据库 shp2pgsql-s"2437"-W"GBK"-ID:\shop_point....
分类:
其他好文 时间:
2014-06-17 15:55:19
阅读次数:
348
1.可变的方法参数:params public void DrawLine(params Point [] p){}-->DrawLine(p1,p2); orDrawLine(p1,p2,p3);2.向上引用(方法重定义):父类引用子类实例,调用时,则调用父类的方法3.virtual,o...
分类:
其他好文 时间:
2014-06-17 00:15:04
阅读次数:
228
Size visibleSize = Director::getInstance()->getVisibleSize();
Point origin = Director::getInstance()->getVisibleOrigin();
std::string path = FileUtils::getInstance()->fullPathForFilename("story.js...