上一页 1 ··· 4 5 6 7 8 9 10 下一页
摘要: 1、Why user "var me=this" in Extjs4?有个英文解释很好:Say you have a method in your object A which itself makes an ajax request which has a callback. In this callback you want to use a property "blob" of your original object A. You can not use "this.blob" in this callback because 阅读全文
posted @ 2013-07-26 12:52 楠楠IT 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 目标:重写一个BaseStore的基类,它继承自Ext.data.Store基类。 autoLoad:true/false 是否自动加载,true时创建store即自动加载,一般适合get方式;false时一般需要通过触发事件给store赋参数,然后load(),一般适合post请求方式。 remoteSort:true/false 是否远程服务器排序,默认false,即在客户端排序。 sortOnLoad:true/false 默认true,所有加在store上的排序操作都在数据加载完之后,改变数据的事件触发之前进行,如果remoteSort为true,则会忽略该字段功能。 ... 阅读全文
posted @ 2013-07-16 16:28 楠楠IT 阅读(1046) 评论(0) 推荐(0) 编辑
摘要: 1、任务:简单测试局域网中的网络是否连接,ip范围:192.168.2.101到192.168.2.200。python 实现代码:import subprocesscmd="cmd.exe"begin=101end=200while begin=0: 9 if name[pos+1:]=="html":10 os.rename(os.path.join(ipath,name),os.path.join(ipath,name[:pos+1]+"txt")) pos=name.find("."),就是找到字符串nam 阅读全文
posted @ 2013-07-13 20:09 楠楠IT 阅读(3772) 评论(0) 推荐(0) 编辑
摘要: 1 string connectionString = @"Data Source=(local)\sql2008r2;Initial Catalog=Movies;Uid=sa;Pwd=sql123$%^"; 2 SqlConnection conn = new SqlConnection(); 3 conn.ConnectionString = connectionString; 4 conn.Open(); 5 string query = "select *from Movies"; 6 ... 阅读全文
posted @ 2013-07-02 18:46 楠楠IT 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 1、每天都要有进步,都要有新知识的收获。2、工作认真负责,高效的完成,多总结。3、自己多练习一些感兴趣的东西,实践!!!4、写博客。5、百度、腾讯、阿里是目标,差距还很大,努力减小差距。6、快速学习掌握新技术。7、习惯命令行、键盘操作,减少鼠标操作。8、算法、数据结构、Linux、android、数据库、Windows……9、自己写一些好的有实际应用价值的东西,比如:实验室内部点餐、日报、测试网站等。10、不浮躁,坚持。未完待续。。。 阅读全文
posted @ 2013-06-23 18:21 楠楠IT 阅读(182) 评论(0) 推荐(0) 编辑
摘要: c++ stl sort函数使用举例: 1 #include <iostream> 2 #include<vector> 3 #include<algorithm> 4 #include<functional> 5 6 using namespace std; 7 8 class MyClass 9 {10 public:11 MyClass(int a,int b):first(a),second(b){}12 int first;13 int second;14 bool operator <(const MyClass &m) 阅读全文
posted @ 2013-06-21 22:37 楠楠IT 阅读(292) 评论(0) 推荐(0) 编辑
摘要: 二叉查找数的操作: 1 #include <iostream> 2 3 using namespace std; 4 5 typedef struct BitNode 6 { 7 int data; 8 struct BitNode *lChild,*rChild; 9 }BitNode; 10 11 int main() 12 { 13 void InitTree(BitNode *&BitTree); 14 int PrintTree(BitNode *BitTree); 15 int SearchNode(BitNode *... 阅读全文
posted @ 2013-06-21 09:40 楠楠IT 阅读(352) 评论(0) 推荐(0) 编辑
摘要: 1、站在PM的角度思考,善于提出问题,提出好的方案。2、设计要站在用户的角度去考虑,要人性化,简言之,用户体验要好。3、不写重复的代码,不做重复的事,善于抽象、复用,用代码解决人工解决的事情。4、善于学习新技术,接受新挑战。5、多和别人交流学习。6、要思考有没有更更好的解决方案,而不是照步就班。 阅读全文
posted @ 2013-06-19 20:40 楠楠IT 阅读(173) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>#include <stdlib.h>int getItem(int *a,int i,int j){ return *(a+i*3+j);}void add(int *p){ (*p)++;}int main(){ int a[4][3]={{1,2,3},{4,5,6},{7,8,9},{12,13,14}}; int b=6; add(&b); printf("%d\n%d\n%d\n",*(*(a+2)+1),getItem(a,2,1),b); return 0;}这是腾讯的一个笔试题,纠结了一段 阅读全文
posted @ 2013-06-13 10:05 楠楠IT 阅读(549) 评论(0) 推荐(0) 编辑
摘要: 输入一个整数数组,判断该数组是不是某二元查找树的后序遍历的结果。如果是返回true,否则返回false。 例如输入5、7、6、9、11、10、8,由于这一整数序列是如下树的后序遍历结果: 8 /\ 6 10/ \ / \5 7 911因此返回true。如果输入7、4、6、5,没有哪棵树的后序遍历的结果是这个序列,因此返回false。分析:主要考查对二元查找树的理解。在后续遍历得到的序列中,最后一个元素为树的根结点。从头开始扫描这个序列,比根结点小的元素都应该位于序列的左半部分;从第一个大于跟结点开始到跟结点前面的一个元素为止,所有元素都应该大于跟结点,因为这部分元素对应的是树的右子树。根据.. 阅读全文
posted @ 2013-06-10 18:59 楠楠IT 阅读(376) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 下一页