??xml version="1.0" encoding="utf-8" standalone="yes"?>gogo大尺度成人免费视频,国产对白叫床清晰在线播放,欧美freesex8一10精品http://www.aygfsteel.com/xmlspy/zh-cnFri, 04 Jul 2025 09:56:14 GMTFri, 04 Jul 2025 09:56:14 GMT60nodejs eclipse,在运行后没有效果http://www.aygfsteel.com/xmlspy/archive/2014/04/25/412905.htmlxmlspyxmlspyThu, 24 Apr 2014 19:52:00 GMThttp://www.aygfsteel.com/xmlspy/archive/2014/04/25/412905.htmlhttp://www.aygfsteel.com/xmlspy/comments/412905.htmlhttp://www.aygfsteel.com/xmlspy/archive/2014/04/25/412905.html#Feedback0http://www.aygfsteel.com/xmlspy/comments/commentRss/412905.htmlhttp://www.aygfsteel.com/xmlspy/services/trackbacks/412905.html使用eclipse的nodejs的插?右键q行app.js,控制C闪而过,没有启动h.

通过搜烦,发现原来是JDK版本的问?我用的是JDK6,不好?使用JDK7好使了.

如果有多个JDK版本共存,可以使用在eclipse安装目录下的文geclipse.ini指定要用的JDK:

-vm
C:/Program Files/Java/jdk1.7.0_55/bin/javaw.exe



xmlspy 2014-04-25 03:52 发表评论
]]>
我的Eclipse讄http://www.aygfsteel.com/xmlspy/archive/2013/11/17/406435.htmlxmlspyxmlspySun, 17 Nov 2013 07:32:00 GMThttp://www.aygfsteel.com/xmlspy/archive/2013/11/17/406435.htmlhttp://www.aygfsteel.com/xmlspy/comments/406435.htmlhttp://www.aygfsteel.com/xmlspy/archive/2013/11/17/406435.html#Feedback2http://www.aygfsteel.com/xmlspy/comments/commentRss/406435.htmlhttp://www.aygfsteel.com/xmlspy/services/trackbacks/406435.html很多人在安装完Eclipse之后什么都不设|,直接用默认的讄Q默认的讄有很多问题?br>在项目管理中应该l一Eclipse的设|?/p>

通过菜单Window->Preferences打开讄H口?/p>

  • General->Editors->Text Editors:
    选上Insert spaces for tabs : ~进使用I格,不用Tab.原因是当把代码复制给|络上的昄的时?
    Tabl常会被删除,D格式完全乱套.
    选上Show line numbers : 昄行号,q个在debug的时候快速定位非常方?
    选上Show print margin,然后在下面的Print margin column输入框中输入120 : 昄一条竖U?
    用于标示打印机打印时的宽?q里用于代码自动换行的宽? 讄?20个字W?q个同样在Java
    代码格式化的时候用?后会说?
    Y3RDP4``Q@][2]JX]3DYVA7[4]
  • General->Workspace
    在Text file encoding中选择Other,然后在下拉框中选UTF-8 : q样所有项目都是用UTF-8~码.默认的是GBK.
  • Java->Code Style->Formatter
    q里是Java代码格式化相关的选项, 要修攚w认的讄,需要新Z个配|?

    点击按钮 New?在弹出框中的 Profile name 输入框输入新配置的名U?q里输入 11, 然后点击OK按钮.
    在新弹出的配|窗口中,选择标签Indentation, 在Tab policy下拉框中选择 Spaces only : ~进使用I格.
    q里需要注?如果在General->Editors->Text Editors中选择了Insert spaces for tabs, 而在格式化选项?br>没有Ҏ使用I格,那么在Java代码格式化后,仍然使用Tab.

    选择标签 Line Wrapping,在Maximum line width输入框输?20 : ?20个字W后换行, 上面?Print margin column
    也用?20,q样q道换行的标示?

其他如果有Editor的地?~进也都要改?个空? 比如: Web节点下面的CSS Files, HTML Files.



xmlspy 2013-11-17 15:32 发表评论
]]>
使用Windows Live Writer写Bloghttp://www.aygfsteel.com/xmlspy/archive/2013/10/02/404674.htmlxmlspyxmlspyWed, 02 Oct 2013 14:46:00 GMThttp://www.aygfsteel.com/xmlspy/archive/2013/10/02/404674.htmlhttp://www.aygfsteel.com/xmlspy/comments/404674.htmlhttp://www.aygfsteel.com/xmlspy/archive/2013/10/02/404674.html#Feedback0http://www.aygfsteel.com/xmlspy/comments/commentRss/404674.htmlhttp://www.aygfsteel.com/xmlspy/services/trackbacks/404674.html使用q个东西的好处是,可以发布到多个Blog?免得使用Web~辑器苦逼地~辑.

下蝲地址: http://windows.microsoft.com/zh-cn/windows-live/essentials-other#essentials=overviewother

* 使用Live Writer?strong>oschina上写Blog: http://my.oschina.net/javayou/blog/39107

* 使用Live Writer在BlogJava上鞋Blog: http://www.aygfsteel.com/vulcan/archive/2010/11/05/337323.html

注意:  - 在日志类型中选择Metaweblog API

          - APIq接? http://www.aygfsteel.com/你的blog名称/services/metaweblog.aspx



xmlspy 2013-10-02 22:46 发表评论
]]>
Titanium -- q行app出现错误: TypeError: argument of type 'NoneType' is not iterablehttp://www.aygfsteel.com/xmlspy/archive/2013/05/31/400007.htmlxmlspyxmlspyFri, 31 May 2013 01:05:00 GMThttp://www.aygfsteel.com/xmlspy/archive/2013/05/31/400007.htmlhttp://www.aygfsteel.com/xmlspy/comments/400007.htmlhttp://www.aygfsteel.com/xmlspy/archive/2013/05/31/400007.html#Feedback0http://www.aygfsteel.com/xmlspy/comments/commentRss/400007.htmlhttp://www.aygfsteel.com/xmlspy/services/trackbacks/400007.html更新了最新Android ADT工具?出现 TypeError: argument of type 'NoneType' is not iterable.

O{J4%Z8HX[DQ%ORWFHNWGUC

解决:

    复制 build-tool/17.0.0/ 下所有内容到 platform-tools 目录?

参?

https://developer.appcelerator.com/question/152497/titanium-sdk-310-error-typeerror-argument-of-type-nonetype-is-not-iterable-on-building-android-app



xmlspy 2013-05-31 09:05 发表评论
]]>
Titanium Terminal 不好使的解决办法http://www.aygfsteel.com/xmlspy/archive/2013/05/30/399992.htmlxmlspyxmlspyThu, 30 May 2013 11:33:00 GMThttp://www.aygfsteel.com/xmlspy/archive/2013/05/30/399992.htmlhttp://www.aygfsteel.com/xmlspy/comments/399992.htmlhttp://www.aygfsteel.com/xmlspy/archive/2013/05/30/399992.html#Feedback0http://www.aygfsteel.com/xmlspy/comments/commentRss/399992.htmlhttp://www.aygfsteel.com/xmlspy/services/trackbacks/399992.html有时候Titanium中的l端会显C?

This Terminal Emulator is not functional because no 'bash' shell could be found.

Please correct the problem and restart the IDE.

解决办法:

  • Team / Git / Git Executable (was empty)   --指定正确的git.exe文g位置
  • Titanium Studio / NodeJS / Node Executable (was empty also) ---- 指定NodeJS的node.exe的位|?/li>

 

然后重启l端好?



xmlspy 2013-05-30 19:33 发表评论
]]>
WebView控g中的onConsoleMessageҎ不被调用http://www.aygfsteel.com/xmlspy/archive/2013/04/28/398522.htmlxmlspyxmlspySat, 27 Apr 2013 17:46:00 GMThttp://www.aygfsteel.com/xmlspy/archive/2013/04/28/398522.htmlhttp://www.aygfsteel.com/xmlspy/comments/398522.htmlhttp://www.aygfsteel.com/xmlspy/archive/2013/04/28/398522.html#Feedback0http://www.aygfsteel.com/xmlspy/comments/commentRss/398522.htmlhttp://www.aygfsteel.com/xmlspy/services/trackbacks/398522.html1.目的

在WebView控g?如果面中调用了javascript脚本console.log Ҏ,p用一个JavaҎ.

 

2.默认实现Ҏ

在Android的WebView控g?有一个setChromeClient(WebChromeClient)Ҏ,

此方法的参数是WebChromeClient对象,通过重蝲此对象中的onConsoleMessageҎ?/p>

可以辑ֈ此目?看代?

WebView webView = new WebView();
webView.setWebChromeClient(new DefaultWebChromeClient);

// 以上代码攑֜在Activity或则Fragment中的onCreateҎ?

private class DefualtWebChromeClient extends WebChromeClient {
    @Override
    public boolean onConsoleMessage(ConsoleMessage consoleMessage) {
        String message = consoleMessage.message();
        int lineNumber = consoleMessage.lineNumber();
        String sourceID = consoleMessage.sourceId();
        String messageLevel = consoleMessage.message();

        Log.i("[WebView]", String.format("[%s] sourceID: %s lineNumber: %n message: %s",
                messageLevel, sourceID, lineNumber, message));

        return super.onConsoleMessage(consoleMessage);
    }

    @Override
    public void onConsoleMessage(String message, int lineNumber, String sourceID) {
        Log.i("[WebView]", String.format("sourceID: %s lineNumber: %n message: %s", sourceID,
                lineNumber, message));
        super.onConsoleMessage(message, lineNumber, sourceID);
    }
}

W一个方法onConsoleMessage(ConsoleMessage consoleMessage)是新版本的android才有的方?W二个方法是旧版本的.

W二个方法已l不推荐使用?但是在旧版本的android?仍然需要此Ҏ.所以最好两个方法都实现.

 

3.问题

默认的实现在某些版本的手Z不好?onConsoleMessageҎL不被调用

 

4.解决Ҏ

使用WebView的addJavascriptInterfaceҎ:

// 首先,定一个类,叫什么名U都可以,但是里面的方法名必须?
// Javascript的console中的Ҏ名对?
private class Console{
    private static final String TAG="[WebView]";
    public void log(String msg){
        Log.i(TAG,msg);
    }
	// q可以添加其他的Ҏ,比如: warn,assert{等
}

// 然后,为WebViewd对应的接?
webView.addJavascriptInterface(new Console, "console");

 

q个解决Ҏ有一个不好的地方,是输出的内Ҏ有onConsoleMessageҎ那么详细,比如行号,没法输?

所?我们应该在onConsoleMessage好的时候用onConsoleMessage,不好使的时候在使用我们自定义的方式.

那么,如何来判断onConsoleMessage是否好? 我们可以在程序初始化的时?先在WebView中运行一下console.log,

如果onConsoleMessageq行?添加一个标?表示默认的实现是好?

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    // q些代码也可以放到onCreateҎ?
	
    this.webView = (WebView) layout.findViewById(R.id.webview);
    WebSettings webSettings = webView.getSettings();
    webSettings.setJavaScriptEnabled(true);
    
    // Set WebChromeClient
    WebChromeClient webChromeClient = new TestConsoleMessageWebChromeClient();
	// 先执行console.log,试是否调用了onConsoleMessage
    webView.loadUrl("javascript:console.log('testConsoleMessage')");
	
    if (((TestConsoleMessageWebChromeClient)webChromeClient).isConsoleMessageOK()){
	    // q里额外使用了一个新的类 TestConsoleMessageWebChromeClient
		// 如果不适用TestConsoleMessageWebChromeClient,需要在
		// DefaultWebChromeClient中添加标记字D?consoleMessageOK,
		// q样如果ҎonConsoleMessage好,那么每次都给consoleMessageOK赋?
		// q个有些多余,也媄响性能.
        webChromeClient = new DefualtWebChromeClient();
    }else{
	    // onConsoleMessage不好?׃用这U方?W二个参数值必L"console"
        webView.addJavascriptInterface(new Console(), "console");
    }
    
    webView.loadUrl("http://www.baidu.com");

    return super.onCreateView(inflater, container, savedInstanceState);
}

// 当默认的onConsoleMessage不好使的时候用的c?
private class Console {
    private static final String TAG = "[WebView]";

    public void log(String msg) {
        Log.i(TAG, msg);
    }
	// q里q可以添加其他方法console对象中有的方?比如 assert
}

// 默认
private class DefualtWebChromeClient extends WebChromeClient {
    @Override
    public boolean onConsoleMessage(ConsoleMessage consoleMessage) {
        String message = consoleMessage.message();
        int lineNumber = consoleMessage.lineNumber();
        String sourceID = consoleMessage.sourceId();
        String messageLevel = consoleMessage.message();

        Log.i("[WebView]", String.format("[%s] sourceID: %s lineNumber: %n message: %s",
                messageLevel, sourceID, lineNumber, message));

        return super.onConsoleMessage(consoleMessage);
    }

    @Override
    public void onConsoleMessage(String message, int lineNumber, String sourceID) {
        Log.i("[WebView]", String.format("sourceID: %s lineNumber: %n message: %s", sourceID,
                lineNumber, message));
        super.onConsoleMessage(message, lineNumber, sourceID);
    }
}

// 用于试onConsoleMessage是否调用的类
private class TestConsoleMessageWebChromeClient extends WebChromeClient {
    private boolean consoleMessageOK = false;

    @Override
    public boolean onConsoleMessage(ConsoleMessage consoleMessage) {
        this.consoleMessageOK = true;
        return super.onConsoleMessage(consoleMessage);
    }

    @Override
    public void onConsoleMessage(String message, int lineNumber, String sourceID) {
        this.consoleMessageOK = true;
        super.onConsoleMessage(message, lineNumber, sourceID);
    }

    public boolean isConsoleMessageOK() {
        return this.consoleMessageOK;
    }
}


xmlspy 2013-04-28 01:46 发表评论
]]>
Javascript技?/title><link>http://www.aygfsteel.com/xmlspy/archive/2013/04/01/397209.html</link><dc:creator>xmlspy</dc:creator><author>xmlspy</author><pubDate>Sun, 31 Mar 2013 22:57:00 GMT</pubDate><guid>http://www.aygfsteel.com/xmlspy/archive/2013/04/01/397209.html</guid><wfw:comment>http://www.aygfsteel.com/xmlspy/comments/397209.html</wfw:comment><comments>http://www.aygfsteel.com/xmlspy/archive/2013/04/01/397209.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/xmlspy/comments/commentRss/397209.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/xmlspy/services/trackbacks/397209.html</trackback:ping><description><![CDATA[<h1>匿名立即执行函数</h1> <div id="wmqeeuq" class="csharpcode"><pre><span id="wmqeeuq" class="lnum"> 1: </span><span id="wmqeeuq" class="rem">// 方式一,q种方式多用了一个括?看着别扭</span></pre><pre><span id="wmqeeuq" class="lnum"> 2: </span>(function(param) {</pre><pre><span id="wmqeeuq" class="lnum"> 3: </span> alert(param);</pre><pre><span id="wmqeeuq" class="lnum"> 4: </span>})(10);</pre><pre><span id="wmqeeuq" class="lnum"> 5: </span> </pre><pre><span id="wmqeeuq" class="lnum"> 6: </span><span id="wmqeeuq" class="rem">// 方式?使用 ! 操作W?/span></pre><pre><span id="wmqeeuq" class="lnum"> 7: </span>!function(param) {</pre><pre><span id="wmqeeuq" class="lnum"> 8: </span> alert(param);</pre><pre><span id="wmqeeuq" class="lnum"> 9: </span>}(10);</pre></div> <style type="text/css">.csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, "Courier New", courier, monospace; background-color: #ffffff; /*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt { background-color: #f4f4f4; width: 100%; margin: 0em; } .csharpcode .lnum { color: #606060; } </style> <p>使用匿名立即执行函数的好处是,可以避免变量冲突.</p> <h1>条g判断</h1> <div id="wmqeeuq" class="csharpcode"><pre><span id="wmqeeuq" class="lnum"> 1: </span><span id="wmqeeuq" class="rem">//========================= 条g判断</span></pre><pre><span id="wmqeeuq" class="lnum"> 2: </span><span id="wmqeeuq" class="kwrd">var</span> sabiable = <span id="wmqeeuq" class="kwrd">true</span>;</pre><pre><span id="wmqeeuq" class="lnum"> 3: </span><span id="wmqeeuq" class="rem">//普通方?/span></pre><pre><span id="wmqeeuq" class="lnum"> 4: </span><span id="wmqeeuq" class="kwrd">if</span> (sabiable) {</pre><pre><span id="wmqeeuq" class="lnum"> 5: </span> alert(<span id="wmqeeuq" class="str">'You are sability!'</span>);</pre><pre><span id="wmqeeuq" class="lnum"> 6: </span>}</pre><pre><span id="wmqeeuq" class="lnum"> 7: </span> </pre><pre><span id="wmqeeuq" class="lnum"> 8: </span><span id="wmqeeuq" class="rem">//诡异方式,利用 ||?&& 操作W?/span></pre><pre><span id="wmqeeuq" class="lnum"> 9: </span><span id="wmqeeuq" class="rem">// a||b : 只有在a为fasle或者返回false时才会执行b,当a为true?直接q回a,后面的b不会执行</span></pre><pre><span id="wmqeeuq" class="lnum"> 10: </span><span id="wmqeeuq" class="rem">// a&&b : 只有在a为true或者返回true时才会执行b,当a为时,直接q回a,后面的b不会执行</span></pre><pre><span id="wmqeeuq" class="lnum"> 11: </span> </pre><pre><span id="wmqeeuq" class="lnum"> 12: </span><span id="wmqeeuq" class="rem">// 上面的代码可以改?</span></pre><pre><span id="wmqeeuq" class="lnum"> 13: </span>sabiable && alert(<span id="wmqeeuq" class="str">'You are sability!'</span>);</pre></div> <style type="text/css">.csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, "Courier New", courier, monospace; background-color: #ffffff; /*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt { background-color: #f4f4f4; width: 100%; margin: 0em; } .csharpcode .lnum { color: #606060; } </style><img src ="http://www.aygfsteel.com/xmlspy/aggbug/397209.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/xmlspy/" target="_blank">xmlspy</a> 2013-04-01 06:57 <a href="http://www.aygfsteel.com/xmlspy/archive/2013/04/01/397209.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>解决Titanium Tablgclick事g在iOS中不生效的方?/title><link>http://www.aygfsteel.com/xmlspy/archive/2013/03/31/397186.html</link><dc:creator>xmlspy</dc:creator><author>xmlspy</author><pubDate>Sat, 30 Mar 2013 18:54:00 GMT</pubDate><guid>http://www.aygfsteel.com/xmlspy/archive/2013/03/31/397186.html</guid><wfw:comment>http://www.aygfsteel.com/xmlspy/comments/397186.html</wfw:comment><comments>http://www.aygfsteel.com/xmlspy/archive/2013/03/31/397186.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/xmlspy/comments/commentRss/397186.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/xmlspy/services/trackbacks/397186.html</trackback:ping><description><![CDATA[<p>问题: 以下代码,tab1的click事g在Android中生?在iOS不生?/p> <div id="wmqeeuq" class="csharpcode"><pre class="alt"><span id="wmqeeuq" class="lnum"> 1: </span><span id="wmqeeuq" class="kwrd">function</span> ApplicationTabGroup(Window) {</pre><pre><span id="wmqeeuq" class="lnum"> 2: </span> <span id="wmqeeuq" class="rem">//create module instance</span></pre><pre class="alt"><span id="wmqeeuq" class="lnum"> 3: </span> <span id="wmqeeuq" class="kwrd">var</span> self = Ti.UI.createTabGroup();</pre><pre><span id="wmqeeuq" class="lnum"> 4: </span> </pre><pre class="alt"><span id="wmqeeuq" class="lnum"> 5: </span> <span id="wmqeeuq" class="rem">//create app tabs</span></pre><pre><span id="wmqeeuq" class="lnum"> 6: </span> <span id="wmqeeuq" class="kwrd">var</span> win1 = <span id="wmqeeuq" class="kwrd">new</span> Window(L(<span id="wmqeeuq" class="str">'home'</span>)), win2 = <span id="wmqeeuq" class="kwrd">new</span> Window(L(<span id="wmqeeuq" class="str">'settings'</span>));</pre><pre class="alt"><span id="wmqeeuq" class="lnum"> 7: </span> </pre><pre><span id="wmqeeuq" class="lnum"> 8: </span> <span id="wmqeeuq" class="kwrd">var</span> tab1 = Ti.UI.createTab({</pre><pre class="alt"><span id="wmqeeuq" class="lnum"> 9: </span> title : L(<span id="wmqeeuq" class="str">'home'</span>),</pre><pre><span id="wmqeeuq" class="lnum"> 10: </span> icon : <span id="wmqeeuq" class="str">'/images/KS_nav_ui.png'</span>,</pre><pre class="alt"><span id="wmqeeuq" class="lnum"> 11: </span> window : win1</pre><pre><span id="wmqeeuq" class="lnum"> 12: </span> });</pre><pre class="alt"><span id="wmqeeuq" class="lnum"> 13: </span> win1.containingTab = tab1;</pre><pre><span id="wmqeeuq" class="lnum"> 14: </span> </pre><pre class="alt"><span id="wmqeeuq" class="lnum"> 15: </span> <span id="wmqeeuq" class="kwrd">var</span> tab2 = Ti.UI.createTab({</pre><pre><span id="wmqeeuq" class="lnum"> 16: </span> title : L(<span id="wmqeeuq" class="str">'settings'</span>),</pre><pre class="alt"><span id="wmqeeuq" class="lnum"> 17: </span> icon : <span id="wmqeeuq" class="str">'/images/KS_nav_views.png'</span>,</pre><pre><span id="wmqeeuq" class="lnum"> 18: </span> window : win2</pre><pre class="alt"><span id="wmqeeuq" class="lnum"> 19: </span> });</pre><pre><span id="wmqeeuq" class="lnum"> 20: </span> win2.containingTab = tab2;</pre><pre class="alt"><span id="wmqeeuq" class="lnum"> 21: </span> </pre><pre><span id="wmqeeuq" class="lnum"> 22: </span> self.addTab(tab1);</pre><pre class="alt"><span id="wmqeeuq" class="lnum"> 23: </span> self.addTab(tab2);</pre><pre><span id="wmqeeuq" class="lnum"> 24: </span> </pre><pre class="alt"><span id="wmqeeuq" class="lnum"> 25: </span> tab1.addEventListener(<span id="wmqeeuq" class="str">'click'</span>,<span id="wmqeeuq" class="kwrd">function</span>(){</pre><pre><span id="wmqeeuq" class="lnum"> 26: </span> <span id="wmqeeuq" class="rem">//q个事g在iOS中不会被触发</span></pre><pre class="alt"><span id="wmqeeuq" class="lnum"> 27: </span> });</pre><pre><span id="wmqeeuq" class="lnum"> 28: </span> </pre><pre class="alt"><span id="wmqeeuq" class="lnum"> 29: </span> <span id="wmqeeuq" class="kwrd">return</span> self;</pre><pre><span id="wmqeeuq" class="lnum"> 30: </span>};</pre><pre class="alt"><span id="wmqeeuq" class="lnum"> 31: </span> </pre><pre><span id="wmqeeuq" class="lnum"> 32: </span>module.exports = ApplicationTabGroup;</pre></div> <style type="text/css">.csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, "Courier New", courier, monospace; background-color: #ffffff; /*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt { background-color: #f4f4f4; width: 100%; margin: 0em; } .csharpcode .lnum { color: #606060; } </style> <p>解决Ҏ:</p> <p>通过看Titanium附带的示例程?Kitcken Sink , 扑ֈ了解x?</p> <p>为TabGroupdfocus事g,然后对事件参数进行判?来确定当前被点击的是那个tab.</p> <p> </p> <div id="wmqeeuq" class="csharpcode"><pre class="alt"><span id="wmqeeuq" class="lnum"> 1: </span><span id="wmqeeuq" class="kwrd">function</span> ApplicationTabGroup(Window) {</pre><pre><span id="wmqeeuq" class="lnum"> 2: </span> <span id="wmqeeuq" class="rem">//create module instance</span></pre><pre class="alt"><span id="wmqeeuq" class="lnum"> 3: </span> <span id="wmqeeuq" class="kwrd">var</span> self = Ti.UI.createTabGroup();</pre><pre><span id="wmqeeuq" class="lnum"> 4: </span> </pre><pre class="alt"><span id="wmqeeuq" class="lnum"> 5: </span> <span id="wmqeeuq" class="rem">//create app tabs</span></pre><pre><span id="wmqeeuq" class="lnum"> 6: </span> <span id="wmqeeuq" class="kwrd">var</span> win1 = <span id="wmqeeuq" class="kwrd">new</span> Window(L(<span id="wmqeeuq" class="str">'home'</span>)), win2 = <span id="wmqeeuq" class="kwrd">new</span> Window(L(<span id="wmqeeuq" class="str">'settings'</span>));</pre><pre class="alt"><span id="wmqeeuq" class="lnum"> 7: </span> </pre><pre><span id="wmqeeuq" class="lnum"> 8: </span> <span id="wmqeeuq" class="kwrd">var</span> tab1 = Ti.UI.createTab({</pre><pre class="alt"><span id="wmqeeuq" class="lnum"> 9: </span> title : L(<span id="wmqeeuq" class="str">'home'</span>),</pre><pre><span id="wmqeeuq" class="lnum"> 10: </span> icon : <span id="wmqeeuq" class="str">'/images/KS_nav_ui.png'</span>,</pre><pre class="alt"><span id="wmqeeuq" class="lnum"> 11: </span> window : win1</pre><pre><span id="wmqeeuq" class="lnum"> 12: </span> });</pre><pre class="alt"><span id="wmqeeuq" class="lnum"> 13: </span> win1.containingTab = tab1;</pre><pre><span id="wmqeeuq" class="lnum"> 14: </span> </pre><pre class="alt"><span id="wmqeeuq" class="lnum"> 15: </span> <span id="wmqeeuq" class="kwrd">var</span> tab2 = Ti.UI.createTab({</pre><pre><span id="wmqeeuq" class="lnum"> 16: </span> title : L(<span id="wmqeeuq" class="str">'settings'</span>),</pre><pre class="alt"><span id="wmqeeuq" class="lnum"> 17: </span> icon : <span id="wmqeeuq" class="str">'/images/KS_nav_views.png'</span>,</pre><pre><span id="wmqeeuq" class="lnum"> 18: </span> window : win2</pre><pre class="alt"><span id="wmqeeuq" class="lnum"> 19: </span> });</pre><pre><span id="wmqeeuq" class="lnum"> 20: </span> win2.containingTab = tab2;</pre><pre class="alt"><span id="wmqeeuq" class="lnum"> 21: </span> </pre><pre><span id="wmqeeuq" class="lnum"> 22: </span> self.addTab(tab1);</pre><pre class="alt"><span id="wmqeeuq" class="lnum"> 23: </span> self.addTab(tab2);</pre><pre><span id="wmqeeuq" class="lnum"> 24: </span> </pre><pre class="alt"><span id="wmqeeuq" class="lnum"> 25: </span> self.addEventListener(<span id="wmqeeuq" class="str">'focus'</span>, <span id="wmqeeuq" class="kwrd">function</span>(e) {</pre><pre><span id="wmqeeuq" class="lnum"> 26: </span> </pre><pre class="alt"><span id="wmqeeuq" class="lnum"> 27: </span> <span id="wmqeeuq" class="kwrd">var</span> info = Titanium.API.info;</pre><pre><span id="wmqeeuq" class="lnum"> 28: </span> </pre><pre class="alt"><span id="wmqeeuq" class="lnum"> 29: </span> <span id="wmqeeuq" class="rem">// 在iOS? e.source ?TabGroup对象,</span></pre><pre><span id="wmqeeuq" class="lnum"> 30: </span> <span id="wmqeeuq" class="rem">// 在Android?e.source ?Tab对象</span></pre><pre class="alt"><span id="wmqeeuq" class="lnum"> 31: </span> <span id="wmqeeuq" class="kwrd">var</span> src = e.source;</pre><pre><span id="wmqeeuq" class="lnum"> 32: </span> <span id="wmqeeuq" class="kwrd">var</span> tab = e.tab;</pre><pre class="alt"><span id="wmqeeuq" class="lnum"> 33: </span> <span id="wmqeeuq" class="kwrd">var</span> preTab = e.previousIndex;</pre><pre><span id="wmqeeuq" class="lnum"> 34: </span> </pre><pre class="alt"><span id="wmqeeuq" class="lnum"> 35: </span> <span id="wmqeeuq" class="rem">// e.tab 是当前获得焦点的tab</span></pre><pre><span id="wmqeeuq" class="lnum"> 36: </span> <span id="wmqeeuq" class="rem">// e.index 当前获得焦点的tab的烦?首次?1</span></pre><pre class="alt"><span id="wmqeeuq" class="lnum"> 37: </span> <span id="wmqeeuq" class="rem">// e.previousTab 上个tab</span></pre><pre><span id="wmqeeuq" class="lnum"> 38: </span> <span id="wmqeeuq" class="rem">// e.previousIndex 上个tab的烦?首次为null</span></pre><pre class="alt"><span id="wmqeeuq" class="lnum"> 39: </span> </pre><pre><span id="wmqeeuq" class="lnum"> 40: </span> <span id="wmqeeuq" class="rem">// On iOS, the "More..." tab is actually a tab container, not a tab. When it is clicked, e.tab is undefined.</span></pre><pre class="alt"><span id="wmqeeuq" class="lnum"> 41: </span> <span id="wmqeeuq" class="kwrd">if</span> (!tab) {</pre><pre><span id="wmqeeuq" class="lnum"> 42: </span> info(<span id="wmqeeuq" class="str">'在iOS中点M"More..."'</span>);</pre><pre class="alt"><span id="wmqeeuq" class="lnum"> 43: </span> <span id="wmqeeuq" class="kwrd">return</span>;</pre><pre><span id="wmqeeuq" class="lnum"> 44: </span> }</pre><pre class="alt"><span id="wmqeeuq" class="lnum"> 45: </span> </pre><pre><span id="wmqeeuq" class="lnum"> 46: </span> <span id="wmqeeuq" class="rem">// 首次</span></pre><pre class="alt"><span id="wmqeeuq" class="lnum"> 47: </span> <span id="wmqeeuq" class="kwrd">if</span> (!preTab) {</pre><pre><span id="wmqeeuq" class="lnum"> 48: </span> info(<span id="wmqeeuq" class="str">'首次q入'</span>);</pre><pre class="alt"><span id="wmqeeuq" class="lnum"> 49: </span> <span id="wmqeeuq" class="kwrd">return</span>;</pre><pre><span id="wmqeeuq" class="lnum"> 50: </span> }</pre><pre class="alt"><span id="wmqeeuq" class="lnum"> 51: </span> </pre><pre><span id="wmqeeuq" class="lnum"> 52: </span> <span id="wmqeeuq" class="kwrd">if</span> (tab === tab1) {</pre><pre class="alt"><span id="wmqeeuq" class="lnum"> 53: </span> info(<span id="wmqeeuq" class="str">'点击了tab1'</span>);</pre><pre><span id="wmqeeuq" class="lnum"> 54: </span> } <span id="wmqeeuq" class="kwrd">else</span> <span id="wmqeeuq" class="kwrd">if</span> (tab === tab2) {</pre><pre class="alt"><span id="wmqeeuq" class="lnum"> 55: </span> info(<span id="wmqeeuq" class="str">'点击了tab2'</span>);</pre><pre><span id="wmqeeuq" class="lnum"> 56: </span> }</pre><pre class="alt"><span id="wmqeeuq" class="lnum"> 57: </span> });</pre><pre><span id="wmqeeuq" class="lnum"> 58: </span> </pre><pre class="alt"><span id="wmqeeuq" class="lnum"> 59: </span> <span id="wmqeeuq" class="kwrd">return</span> self;</pre><pre><span id="wmqeeuq" class="lnum"> 60: </span>};</pre><pre class="alt"><span id="wmqeeuq" class="lnum"> 61: </span> </pre><pre><span id="wmqeeuq" class="lnum"> 62: </span>module.exports = ApplicationTabGroup;</pre></div> <style type="text/css">.csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, "Courier New", courier, monospace; background-color: #ffffff; /*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt { background-color: #f4f4f4; width: 100%; margin: 0em; } .csharpcode .lnum { color: #606060; } </style><img src ="http://www.aygfsteel.com/xmlspy/aggbug/397186.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/xmlspy/" target="_blank">xmlspy</a> 2013-03-31 02:54 <a href="http://www.aygfsteel.com/xmlspy/archive/2013/03/31/397186.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>我常用的Eclipse插ghttp://www.aygfsteel.com/xmlspy/archive/2013/01/26/394789.htmlxmlspyxmlspyFri, 25 Jan 2013 19:15:00 GMThttp://www.aygfsteel.com/xmlspy/archive/2013/01/26/394789.htmlhttp://www.aygfsteel.com/xmlspy/comments/394789.htmlhttp://www.aygfsteel.com/xmlspy/archive/2013/01/26/394789.html#Feedback0http://www.aygfsteel.com/xmlspy/comments/commentRss/394789.htmlhttp://www.aygfsteel.com/xmlspy/services/trackbacks/394789.html以下的插仉可以使用Eclipse Marketplaceq行查找,安装.

 

  1. AnyEdit Tools 
    介绍地址: http://marketplace.eclipse.org/content/anyedit-tools#.UQLITyd6OTU
    更新地址: http://andrei.gmxhome.de/eclipse/

    在更新地址中Eclipse3.5-4.2版本的分支里,没有扑ֈAnyEdit Tools,
    使用Eclipse Marketplace在里面查找anyedit,之后点击Install按钮可以安装.
  2. Eclipse Explorer
    介绍: 主要用于 在操作系l资源管理器打开文g? 可以避免以下啰嗦操作:
            在资源上点击右键然后选择属?然后在复制资源的pȝ路径,然后打开pȝ资源理?复制地址,回R?
  3.   Eclipse Color Theme
    介绍: 各种定义好的~辑器代码颜色模?
  4.   Java Source Attacher Feature
    介绍: 可以帮助你查找你的jar包的源码, q样在Java~辑器中点击ctrl+右键可以查看jar包对应类的源码了,
            如果找不C弹出对话框让你手动指?
            q个非常有用,在做Android开发时, Android插g不允怽通过在jar上点d?>Attach source,
            搞得好多jar包都无法实时查看Ҏ的注?使用q个插g可以了.
  5.   Eclipse EGit
    介绍: git的Eclipse插g.
  6. Advanced Prototyping tool - Prototyper Free Edition 2.1 Q在Marketplace中搜?PrototyperQ?
    介绍: 非常好用?手机、^ѝ桌面应用和|站的原型设计工P几乎支持现在市面上所有类型的手机、^板,? iPhone、iPad?
             Android、BlackBerry、WindowsPhone{等。ƈ且有大量可下载的模版和Widget。拖拖拽拽就可以做出原型?
             TM截图未命? src=

            其实q个不是Eclipse的插?臛_在Marketplace中找到后,无法直接安装?不过可以q入面中提供的主页链接
            到这个工L|站下蝲.
    |站地址Q?http://www.justinmind.com/


xmlspy 2013-01-26 03:15 发表评论
]]>
eclipse插g无法安装的问?/title><link>http://www.aygfsteel.com/xmlspy/archive/2006/12/13/87575.html</link><dc:creator>xmlspy</dc:creator><author>xmlspy</author><pubDate>Wed, 13 Dec 2006 11:46:00 GMT</pubDate><guid>http://www.aygfsteel.com/xmlspy/archive/2006/12/13/87575.html</guid><wfw:comment>http://www.aygfsteel.com/xmlspy/comments/87575.html</wfw:comment><comments>http://www.aygfsteel.com/xmlspy/archive/2006/12/13/87575.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.aygfsteel.com/xmlspy/comments/commentRss/87575.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/xmlspy/services/trackbacks/87575.html</trackback:ping><description><![CDATA[ <p>一安装插geclipse提C?br />   Properties Search for Eclipse 3.1.x (2.0.0) requires plug-in "org.eclipse.search (3.1.0)", or equivalent.</p> <p>?搞得我什么插仉安装不了 :(<br />   </p> <img src ="http://www.aygfsteel.com/xmlspy/aggbug/87575.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/xmlspy/" target="_blank">xmlspy</a> 2006-12-13 19:46 <a href="http://www.aygfsteel.com/xmlspy/archive/2006/12/13/87575.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> վ֩ģ壺 <a href="http://" target="_blank">ĵ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">¬</a>| <a href="http://" target="_blank">¸</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Ͽ</a>| <a href="http://" target="_blank">Ǽ</a>| <a href="http://" target="_blank">ղ</a>| <a href="http://" target="_blank">ĵ</a>| <a href="http://" target="_blank">˫</a>| <a href="http://" target="_blank">ξ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">׿</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">̨</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Ϫ</a>| <a href="http://" target="_blank">౱</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ͼ</a>| <a href="http://" target="_blank">֯</a>| <a href="http://" target="_blank">ʡ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">̷</a>| <a href="http://" target="_blank">̩</a>| <a href="http://" target="_blank">ƺ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">̨</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Ͷ</a>| <a href="http://" target="_blank">̩</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>