不了解或不會Action在play framework很難再深入下去, 這是http 
request的點以下這段代碼困擾我很久, 如今我才剛了解Action { implicit request => Ok("Got request [" 
+ request + "]")}原文這麼說It is o....
                            
                            
                                分类:
其他好文   时间:
2014-05-16 07:52:45   
                                阅读次数:
216
                             
                    
                        
                            
                            
                                Problem Description
XX星有许多城市,城市之间通过一种奇怪的高速公路SARS(Super Air Roam Structure---超级空中漫游结构)进行交流,每条SARS都对行驶在上面的Flycar限制了固定的Speed,同时XX星人对 Flycar的“舒适度”有特殊要求,即乘坐过程中最高速度与最低速度的差越小乘坐越舒服 ,(理解为SARS的限速要求,flycar必须瞬间提...
                            
                            
                                分类:
其他好文   时间:
2014-05-16 01:43:49   
                                阅读次数:
270
                             
                    
                        
                            
                            
                                核心点:
super关键字,表示调用的是父类对象。
this关键字,表示调用的是当前运行类对象。
那么如果在父类中,使用了关键字,this,此时的this指的是什么呢?
看下面的例子,再加深理解核心店的第二句话就ok了。
parent类:
package com.ghsy.thissuper;
public class Parent {
	
	public void init(){
...
                            
                            
                                分类:
其他好文   时间:
2014-05-14 20:04:29   
                                阅读次数:
217
                             
                    
                        
                            
                            
                                iOS 设置UILabel 的内边距- 
(void)drawTextInRect:(CGRect)rect { UIEdgeInsets insets = {0, 5, 0, 5}; [super 
drawTextInRect:UIEdgeInsetsInsetRect(rect, in...
                            
                            
                                分类:
移动开发   时间:
2014-05-14 10:12:21   
                                阅读次数:
4319
                             
                    
                        
                            
                            
                                public void onCreate(Bundle savedInstanceState) { 
super.onCreate(savedInstanceState); Button btn = new Button(this); 
btn.setText("测试ndk"); btn.setOnCl...
                            
                            
                                分类:
移动开发   时间:
2014-05-14 02:33:36   
                                阅读次数:
488
                             
                    
                        
                            
                            
                                在res/layout/menu文件夹下,放置login.xml: 
代码中配置如下:@Overridepublic boolean onCreateOptionsMenu(Menu menu) 
{super.onCreateOptionsMenu(menu);getMenuInflat...
                            
                            
                                分类:
移动开发   时间:
2014-05-14 02:30:32   
                                阅读次数:
581
                             
                    
                        
                            
                            
                                Super Star
Time Limit: 1000MS
 
Memory Limit: 65536K
Total Submissions: 3198
 
Accepted: 853
 
Special Judge
Description
During a voyage of the starship Hakodate-maru (se...
                            
                            
                                分类:
其他好文   时间:
2014-05-13 23:49:40   
                                阅读次数:
491
                             
                    
                        
                            
                            
                                导入两个包:
import android.view.Window;
import android.view.WindowManager;
public class MainActivity extends ActionBarActivity {@Override protected void onCreate(Bundle savedInstanceState) { super.onCrea...
                            
                            
                                分类:
移动开发   时间:
2014-05-13 23:19:51   
                                阅读次数:
509
                             
                    
                        
                            
                            
                                又算是一段时间学习的结束,回首不懂的,模糊的还有,却也发现,不懂的却变懂,这两天要复习了,我一定要认真,我觉得是基础学习最后的战斗和机会了,我今天就从前开始看了一下书,加上网上的资料和总结,主要说说这个简单有麻烦的this和super. this:代表对象。就是所在函数所属对象的引用。this到.....
                            
                            
                                分类:
其他好文   时间:
2014-05-13 21:27:47   
                                阅读次数:
383
                             
                    
                        
                            
                            
                                效果图:
程序代码:
bool HelloWorld::init()
{
    //////////////////////////////
    // 1. super init first
    if ( !CCLayer::init() )
    {
        return false;
    }
    
    CCSize visibleSize =...
                            
                            
                                分类:
移动开发   时间:
2014-05-13 16:27:03   
                                阅读次数:
402