曾经试过这样的方法 ????? 在iframe子页面获取父页面元素 ????? 代码如下: ????? $(‘#objId‘, parent.document); 这样可以获得父页面的元素,但是调用EasyUI的方法的时候,就会报错。 郁闷了很久很...
                            
                            
                                分类:
其他好文   时间:
2015-06-02 23:34:00   
                                阅读次数:
325
                             
                    
                        
                            
                            
                                Junits 和 Selenium ? ? Junits 处理的是unit level 的测试;Selenium 处理的是 functional leve 的测试。虽然它们是完全不同,但仍然可以用Junit 来写 Selenium 测试。 一个完整的例子 import?java.util.con...
                            
                            
                                分类:
其他好文   时间:
2015-06-02 23:35:12   
                                阅读次数:
337
                             
                    
                        
                            
                            
                                //FIRST
typedef?void(^TellPicBlock)(NSString?*albumPic)?;//typedef定义BLOCK
@interface?PersonProfileViewController?:?UITableViewController?
@property?(nonatomic,copy)?TellPicBlock?TBloc...
                            
                            
                                分类:
移动开发   时间:
2015-06-02 23:33:11   
                                阅读次数:
352
                             
                    
                        
                            
                            
                                基本操作UITextField *userNameTextField = [[UITextField alloc] init];
    userNameTextField.frame = CGRectMake(30, 100, 220, 50);
    [self.window addSubview:userNameTextField];
    [userNameTextField relea...
                            
                            
                                分类:
移动开发   时间:
2015-06-02 23:33:36   
                                阅读次数:
331
                             
                    
                        
                            
                            
                                #include
#include
using namespace std;
class Stu   //声明基类
{
public:
Stu(int n, string nam);  //基类构造函数
void display();          //成员函数,输出基类数据成员
protected:        //(*)访问权限为保护型的数据成员
int num;   ...
                            
                            
                                分类:
其他好文   时间:
2015-06-02 23:34:43   
                                阅读次数:
286
                             
                    
                        
                            
                            
                                转载请注明出处
源码下载地址
这次解析的控件DrawerArrowDrawable是一款侧拉抽屉效果的控件,在很多应用上我们都可以看到(例如知乎),控件的github地址为https://github.com/ChrisRenke/DrawerArrowDrawable
大家可以先来看一下控件的效果
这个控件的作者,也写过一篇文章对控件的制作过程做了说明,其中更多的是涉及箭头的...
                            
                            
                                分类:
其他好文   时间:
2015-06-02 23:32:53   
                                阅读次数:
437
                             
                    
                        
                            
                            
                                1.12 函数和参数
和其他脚本语言一样,Bash同样支持函数,并且可以传递参数。
1.12.1 函数定义和传参#!/bin/bash
function fname()       #也可以用fname()代替
{
    echo $1,$2;        #访问参数1和参数2
    echo "$@";         #以列表的方式一次性打印所有参数
    echo "$*";...
                            
                            
                                分类:
系统相关   时间:
2015-06-02 23:34:32   
                                阅读次数:
343
                             
                    
                        
                            
                            
                                1,启动报错显示[org.springframework.web.servlet.DispatcherServlet]FrameworkServlet 'springMvc': initialization completed in 382 ms
Jun 01, 2015 6:39:06 PM org.apache.coyote.http11.Http11Protocol start
SEVERE:...
                            
                            
                                分类:
编程语言   时间:
2015-06-02 23:34:43   
                                阅读次数:
605
                             
                    
                        
                            
                            
                                编译器支持谷歌和苹果公司都使用Clang作为它们的C++前段。为了使他们的代码运行在Windows上,微软不得不将Visual C++的后端C2和Clang结合起来。(Clang是一个C语言、C++、Objective-C、Objective-C++语言的轻量级编译器,源代码发布于BSD协议下。译者注)IDE支持在Visual Studio中Objective-C具有语法高亮、代码完成和调试支持等功...
                            
                            
                                分类:
编程语言   时间:
2015-06-02 23:31:52   
                                阅读次数:
373
                             
                    
                        
                            
                            
                                Notification Centers
通知中心
A notification center manages the sending and receiving of notifications. It notifies all observers of notifications meeting specific criteria. The notification infor...
                            
                            
                                分类:
其他好文   时间:
2015-06-02 23:31:53   
                                阅读次数:
502
                             
                    
                        
                            
                            
                                现在换是看不明白SG函数的求法什么的
暂时先当模板题吧
函数mex1就是求g(x)
然后异或
#include
#include
#include
#include
using namespace std;
int k,fibo[100],f[10001];
int mex1(int p){
    int i,t;
    bool g[101]={0};
    for(i=0;i<k...
                            
                            
                                分类:
其他好文   时间:
2015-06-02 23:34:00   
                                阅读次数:
415
                             
                    
                        
                            
                            
                                question: https://codility.com/programmers/lessons/4
we need two parts to prove our solution.
on one hand,
there is no false triangular. Given the array has been sorted, if A[i]+A[i+1]>A[i+2]...
                            
                            
                                分类:
其他好文   时间:
2015-06-02 23:32:26   
                                阅读次数:
361
                             
                    
                        
                            
                            
                                1 重装ubuntu后恢复开机选单十分简单。直接更新grub就可以了:
sudo update-grub
a 获取root权限:
       sudo -i
b  查看盘符列表(如果你知道你的ubuntu在哪个分区就不必了):
     fdisk -l
     找到id为83的盘符sda?(即linux所在的盘符)
c   加入mnt:
     sudo mount...
                            
                            
                         
                    
                        
                            
                            
                                Solution of Codilitycodility.com is another great place to improve your programming skill. Train myself , and record here.Lesson 1: Time Complexity 
Lesson 2: Counting Elements 
Lesson 3: Prefix Sums...
                            
                            
                                分类:
其他好文   时间:
2015-06-02 23:30:49   
                                阅读次数:
247
                             
                    
                        
                            
                            
                                题目描述:
给定两个整数A和B,其表示形式是:从个位开始,每三位数用逗号","隔开。
现在请计算A+B的结果,并以正常形式输出。
输入:
输入包含多组数据数据,每组数据占一行,由两个整数A和B组成(-10^9 
输出:
请计算A+B的结果,并以正常形式输出,每组数据占一行。
样例输入:
-234,567,890 123,456,7891,234 2,345,678
样例输出:
...
                            
                            
                                分类:
其他好文   时间:
2015-06-02 23:29:59   
                                阅读次数:
235