??xml version="1.0" encoding="utf-8" standalone="yes"?>BlogJava-墙头草的Javahttp://www.qpkxbc.shop/javagrass/zh-cnSat, 24 Aug 2019 00:00:35 GMTSat, 24 Aug 2019 00:00:35 GMT602013q??2?个C#最热门问题解答http://www.qpkxbc.shop/javagrass/archive/2013/08/12/402683.html墙头?/dc:creator>墙头?/author>Mon, 12 Aug 2013 02:53:00 GMThttp://www.qpkxbc.shop/javagrass/archive/2013/08/12/402683.htmlhttp://www.qpkxbc.shop/javagrass/comments/402683.htmlhttp://www.qpkxbc.shop/javagrass/archive/2013/08/12/402683.html#Feedback0http://www.qpkxbc.shop/javagrass/comments/commentRss/402683.htmlhttp://www.qpkxbc.shop/javagrass/services/trackbacks/402683.html?C#怎么讑֮Stream.Read的超时时?/a>
{?streamReader.BaseStream.ReadTimeout = 2000;

?C#如何从XmlNode里删除CDATA标签
{?
xml.innerText = xml.innerText.Replace("![CDATA[","").Replace("]]","");
xmlDoc.Save();// xmlDoc is your xml document

{?
var dt = new DateTime(1970, 1, 1, 0, 0, 0, 0).AddSeconds(Math.Round(1372061224000 / 1000d)).ToLocalTime();
Console.WriteLine(dt); // Prints: 6/24/2013 10:07:04 AM

{?
var attributes = (from n in xml.Root.Attributes("someProperty")
                        select n.Value).ToList();
{?
Regex regex = new Regex(@"\s{2,}"); // matches at least 2 whitespaces
if (regex.IsMatch(inputString))
    // do something



]]>
javascript的indexofҎ的定义和用法http://www.qpkxbc.shop/javagrass/archive/2013/02/20/395474.html墙头?/dc:creator>墙头?/author>Wed, 20 Feb 2013 08:46:00 GMThttp://www.qpkxbc.shop/javagrass/archive/2013/02/20/395474.htmlhttp://www.qpkxbc.shop/javagrass/comments/395474.htmlhttp://www.qpkxbc.shop/javagrass/archive/2013/02/20/395474.html#Feedback0http://www.qpkxbc.shop/javagrass/comments/commentRss/395474.htmlhttp://www.qpkxbc.shop/javagrass/services/trackbacks/395474.html
javascript的indexofҎ可返回某个指定的字符串值在字符串中首次出现的位|?/div>
q回 String 对象内第一ơ出现子字符串的字符位置?br />strObj.indexOf(subString[, startIndex])
参数
strObj
必选项。String 对象或文字?br />subString
必选项。要?String 对象中查扄子字W串?br />starIndex
可选项。该整数值指出在 String 对象内开始查扄索引。如果省略,则从字符串的开始处查找?br />
说明
indexOf Ҏq回一个整数|指出 String 对象内子字符串的开始位|。如果没有找到子字符Ԍ则返?-1?br />
如果 startindex 是负敎ͼ?startindex 被当作零。如果它比最大的字符位置索引q大Q则它被当作最大的可能索引?br />
从左向右执行查找。否则,该方法与 lastIndexOf 相同?br />
CZ

下面的示例说明了 indexOf Ҏ的用法?br />
代码如下:

function IndexDemo(str2){
var str1 = "BABEBIBOBUBABEBIBOBU"
var s = str1.indexOf(str2);
return(s);
}


lastIndexOfҎq回子字W串最后一ơ出现的位置Q和 indexof相反?br />
substringҎ

strQstr.substring(int beginIndex);截取掉str从首字母起长度ؓbeginIndex的字W串Q将剩余字符串赋值给strQ?br />strQstr.substring(int beginIndexQint endIndex);截取str中从beginIndex开始至endIndexl束时的字符Ԍq将其赋值给str;

例子Q?br />代码如下:
var elems=node.getElementsByTagName(“*");
for(var i=0;i<elems.length;i++){
if(elems[i].className.indexOf(classname)!=-1)
{ }
}

a.indexOf(b)可用来判断匹配,q回b在a出现的第一个字母的位置Q如果没有返?1?br />如果有重复的字符出现Q以W一个字Wؓ准?/div>相关内容:


]]>Eclipse通过直接复制安装插g的方?/title><link>http://www.qpkxbc.shop/javagrass/archive/2013/02/16/395327.html</link><dc:creator>墙头?/dc:creator><author>墙头?/author><pubDate>Sat, 16 Feb 2013 02:52:00 GMT</pubDate><guid>http://www.qpkxbc.shop/javagrass/archive/2013/02/16/395327.html</guid><wfw:comment>http://www.qpkxbc.shop/javagrass/comments/395327.html</wfw:comment><comments>http://www.qpkxbc.shop/javagrass/archive/2013/02/16/395327.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.qpkxbc.shop/javagrass/comments/commentRss/395327.html</wfw:commentRss><trackback:ping>http://www.qpkxbc.shop/javagrass/services/trackbacks/395327.html</trackback:ping><description><![CDATA[<div><p> <span style="font-family:Microsoft YaHei;font-size:14px;">假设你的 Eclipse的在QC:\eclipse), 解压你下载的 eclipse 插g或者安装eclipse 插g到指定目录AA(c:\AA)文g夹,打开AA 文g夹,在AA文g多w分别包含两个文g夹features和plugins Q然后把两个文g多w的文件分别复制到eclipse下所对应的文件夹下的features 和plugins 下,一般的把插件文件直接复? 到eclipse目录里是最直接也是最愚蠢的一U方法!因ؓ日后惌删除q些插g会非常的困难Q强列的不推荐用!Q!</span> </p> <p> <span style="font-family:Microsoft YaHei;font-size:14px;">注意Q直接将 插g包解压到plugins文g夹下之后Q重启eclipseQ可能不会加载新的插件?/span>  </p> <p> <span style="font-family:Microsoft YaHei;font-size:14px;">解决Ҏ是:</span>  </p> <p> <span style="font-family:Microsoft YaHei;font-size:14px;">1、打开命o行,到当前eclipse的目录下Q输入eclipse -cleanQ重新启动eclipseQ这样eclipse׃加上新的插g了?/span> </p> <p> <span style="font-family:Microsoft YaHei;font-size:14px;">2、如果插件不能升效,则请eclipse\configuration\org.eclipse.update目录删除后再启动eclipse:)</span> </p> <p> <span style="font-family:Microsoft YaHei;font-size:14px;">你可以在eclipse的菜?Help"-->"About Eclipse SDK"-->"Feature Details" ?Plug-in Details"中看到新安装的插件?/span> </p> <p> <span style="font-family:Microsoft YaHei;font-size:14px;">假设你的Eclipse的在QC:\eclipse), 解压你下载的 eclipse 插g或者安装eclipse </span><br /> <span style="font-family:Microsoft YaHei;font-size:14px;">插g到指定目录AA(c:\AA)文g夹,打开AA 文g夹,在AA文g多w分别包含两个文g夹features和plugins </span><br /> <span style="font-family:Microsoft YaHei;font-size:14px;">Q然后把两个文g多w的文件分别复制到eclipse下所对应的文件夹下的features 和plugins 下,一般的把插件文件直接复?</span><br /> <span style="font-family:Microsoft YaHei;font-size:14px;">到eclipse目录里是最直接也是最愚蠢的一U方法!因ؓ日后惌删除q些插g会非常的困难Q强列的不推荐用!Q?/span> </p> <p> <span style="font-family:Microsoft YaHei;font-size:14px;">注意Q直接将 插g包解压到plugins文g夹下之后Q重启eclipseQ可能不会加载新的插件?/span> </p> <p> <span style="font-family:Microsoft YaHei;font-size:14px;">解决Ҏ是:</span> </p> <p> <span style="font-family:Microsoft YaHei;font-size:14px;">1、打开命o行,到当前eclipse的目录下Q输入eclipse -cleanQ重新启动eclipseQ这样eclipse׃加上新的插g了?/span> </p> <p> <span style="font-family:Microsoft YaHei;font-size:14px;">2、如果插件不能升效,则请eclipse\configuration\org.eclipse.update目录删除后再启动eclipse:)</span> </p> <p> <span style="font-family:Microsoft YaHei;font-size:14px;">你可以在eclipse的菜?Help"-->"About Eclipse SDK"-->"Feature Details" </span><br /> <span style="font-family:Microsoft YaHei;font-size:14px;">?Plug-in Details"中看到新安装的插件?/span> </p></div><div>Eclipse相关内容:<br /><div><ul><li><a href="http://www.itstrike.cn/Question/fda78d21-dc69-44fa-952b-be1d79f9e9cf">Eclipse提示No Default Proposals和no completions available的解x?/a></li><li><a href="http://www.itstrike.cn/Question/a49fb884-87fc-4a6e-a943-d1205fe9ec05">Eclipse无法启动,提示"JVM terminated. Exit code=-1"错误</a></li><li><a href="http://www.itstrike.cn/Question/d65ebe42-6775-421d-90c6-2cd52f564b18">Eclipse无法安装Maven插g,出现错误</a></li><li><a href="http://www.itstrike.cn/Question/16b6c12f-5770-4c20-a508-7990e5f4d688">Eclipse安装Maven的方?/a></li><li><a href="http://www.itstrike.cn/Question/78cee367-ffae-4211-aa92-be6669a45a38">Z么android模拟器在eclipse不能q行Q?/a></li></ul></div></div><img src ="http://www.qpkxbc.shop/javagrass/aggbug/395327.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.qpkxbc.shop/javagrass/" target="_blank">墙头?/a> 2013-02-16 10:52 <a href="http://www.qpkxbc.shop/javagrass/archive/2013/02/16/395327.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>eclipse使用link文g安装插g的方?/title><link>http://www.qpkxbc.shop/javagrass/archive/2013/02/16/395326.html</link><dc:creator>墙头?/dc:creator><author>墙头?/author><pubDate>Sat, 16 Feb 2013 02:51:00 GMT</pubDate><guid>http://www.qpkxbc.shop/javagrass/archive/2013/02/16/395326.html</guid><wfw:comment>http://www.qpkxbc.shop/javagrass/comments/395326.html</wfw:comment><comments>http://www.qpkxbc.shop/javagrass/archive/2013/02/16/395326.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.qpkxbc.shop/javagrass/comments/commentRss/395326.html</wfw:commentRss><trackback:ping>http://www.qpkxbc.shop/javagrass/services/trackbacks/395326.html</trackback:ping><description><![CDATA[<div><p> <span style="font-family:Microsoft YaHei;font-size:14px;">a.假设你的Eclipse的在QC:\eclipse),在该文g夹下Q新L目录l构QC:\eclipse\PluginsEclipse\jode\eclipse),</span> </p> <p> <span style="font-family:Microsoft YaHei;font-size:14px;">b.解压你下载的eclipse 插g或者安装eclipse 插g到指定目录BBQC:\BBQ文件夹Q打开BB 文g夹,然后?</span><br /> <span style="font-family:Microsoft YaHei;font-size:14px;">BB文g多w的两个文件夹features和plugins 复制到刚刚新建好的eclipse </span><br /> <span style="font-family:Microsoft YaHei;font-size:14px;">QC:\eclipse\PluginsEclipse\jode\eclipse,q样eclipse中就有了二个插g目录features and </span><br /> <span style="font-family:Microsoft YaHei;font-size:14px;">plugins)?</span> </p> <p> <span style="font-family:Microsoft YaHei;font-size:14px;">c.?eclipseQC:\eclipse)目录中新建links(C:\eclipse\links)目录,在links目录中徏立一个以link为扩展名 的文本文件如jode.linkQ内容如下path=C:/eclipse/PluginsEclipse/jode </span><br /> <span style="font-family:Microsoft YaHei;font-size:14px;">或?path=C:\\eclipse\\PluginsEclipse\\jode 插g的目录)</span> </p> <p> <span style="font-family:Microsoft YaHei;font-size:14px;">重启eclipse插g׃安装完成?/span> </p> <p> <span style="font-family:Microsoft YaHei;font-size:14px;">注意Qlink文g中path=插g目录的path路径分隔要用\\或是/</span> </p> <p> <span style="font-family:Microsoft YaHei;font-size:14px;">可以在eclipse的菜?Help"-->"About Eclipse SDK"-->"Feature Details" ?Plug-in </span><br /> <span style="font-family:Microsoft YaHei;font-size:14px;">Details"中看到新安装的插?/span></p><p><br /><span style="font-family:Microsoft YaHei;font-size:14px;"></span></p><p><span style="font-family:Microsoft YaHei;font-size:14px;">Eclipse相关内容:</span></p><p><span style="font-family:Microsoft YaHei;font-size:14px;"><div><ul><li><a href="http://www.itstrike.cn/Question/33a6992e-101f-4510-9eda-adf7b8c6f1e0">eclipse提示The server does not support version 3.0 of the J2EE错误的解x?/a></li><li><a href="http://www.itstrike.cn/Question/5af3fe8f-58ae-4d2f-b2aa-11c6a3114ef0">eclipse提示target runtime apache tomcat 6.0 is no defined错误?个解x?/a></li><li><a href="http://www.itstrike.cn/Question/187f1058-7804-4ba0-9af7-ce615a195ad7">eclipse在debug模式下,出现source not found错误</a></li><li><a href="http://www.itstrike.cn/Question/fda78d21-dc69-44fa-952b-be1d79f9e9cf">Eclipse提示No Default Proposals和no completions available的解x?/a></li><li><a href="http://www.itstrike.cn/Question/a49fb884-87fc-4a6e-a943-d1205fe9ec05">Eclipse无法启动,提示"JVM terminated. Exit code=-1"错误</a></li></ul></div><br /></span> </p></div><img src ="http://www.qpkxbc.shop/javagrass/aggbug/395326.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.qpkxbc.shop/javagrass/" target="_blank">墙头?/a> 2013-02-16 10:51 <a href="http://www.qpkxbc.shop/javagrass/archive/2013/02/16/395326.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Android实现手机和电脑间的UDP|络通信http://www.qpkxbc.shop/javagrass/archive/2013/02/07/395208.html墙头?/dc:creator>墙头?/author>Thu, 07 Feb 2013 05:44:00 GMThttp://www.qpkxbc.shop/javagrass/archive/2013/02/07/395208.htmlhttp://www.qpkxbc.shop/javagrass/comments/395208.htmlhttp://www.qpkxbc.shop/javagrass/archive/2013/02/07/395208.html#Feedback4http://www.qpkxbc.shop/javagrass/comments/commentRss/395208.htmlhttp://www.qpkxbc.shop/javagrass/services/trackbacks/395208.html

先介l两个UDP相关的类

DatagramSocket q个是UDP套接字,一般服务器端可以绑定一个本机端口,而客L发送方则不需要?/p>

DatagramPacket q个是数据报包,服务器端直接按缓存读Q客L则需要指定Ip地址和端?/p>

q次我们做个android手机端跟电脑端通信

电脑端:
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.SocketException;


public class UdpRecv {

    public static void main(String[] args) throws Exception{
        
        //l定本机断开
        DatagramSocket ds = new DatagramSocket(8080);
        
        byte[] buf = new byte[1024];
        DatagramPacket dp = new DatagramPacket(buf,buf.length);
        
        //接收数据?br />        ds.receive(dp);
        
        //取出数据报内?br />        String str = new String(dp.getData(),0,dp.getLength());
        
        System.out.println(str);
        
        //打印发送方的地址
        System.out.println("ip:"+dp.getAddress().getHostAddress()+"port:"+dp.getPort());
        
        ds.close();
    }
}
-----------------------------------------------------
android相关内容:
-----------------------------------------------------
手机端:
package com.bvin.test.udp;

import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;

import android.app.Activity;
import android.content.Context;
import android.net.wifi.WifiInfo;
import android.net.wifi.WifiManager;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.EditText;

public class MainActivity extends Activity {
    /** Called when the activity is first created. */
    EditText et ;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
         et =  new EditText(this);
        
        setContentView(et);
        
        WifiManager wMan = (WifiManager)getSystemService(Context.WIFI_SERVICE);
        if(!wMan.isWifiEnabled()){
            wMan.setWifiEnabled(true);
        }
        WifiInfo wifiInfo = wMan.getConnectionInfo();
        Log.e("ip", intToIp(wifiInfo.getIpAddress()));//本机ipQ仅wifi环境Q?br />    }

    //把获取的整Ş转换成字W型
    private String intToIp(int i) {         
        
        return (i & 0xFF ) + "." +         
      ((i >> 8 ) & 0xFF) + "." +         
      ((i >> 16 ) & 0xFF) + "." +         
      ( i >> 24 & 0xFF) ;   
   }
    
    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // TODO Auto-generated method stub
        menu.add("发?);
        return super.onCreateOptionsMenu(menu);
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        // TODO Auto-generated method stub
        if(item.getItemId()==0){
            DatagramSocket ds;
            try {
                //套接?br />                ds = new DatagramSocket();
                //发送内?br />                String str = et.getText().toString();
                //构徏数据报(内容+地址Q?br />                DatagramPacket dp = new DatagramPacket(str.getBytes(),str.length(),InetAddress.getByName("192.168.0.102"),8080);
                //把数据报发送出?br />                ds.send(dp);
                //关闭套接?br />                ds.close();
                
            } catch (IOException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
            
        }
        return super.onOptionsItemSelected(item);
        
    }
    
    
}
首先q行电脑接收端,在接收到发送方数据之前会一直阻塞。而手机端会有个输入框Q有个发送菜单,会把输入框的内容给发送到PC端,虽然UDP不算可靠Q但是在局域网q是挺可靠?br />


]]>
LINQ~译到CIL的方?/title><link>http://www.qpkxbc.shop/javagrass/archive/2013/02/06/395175.html</link><dc:creator>墙头?/dc:creator><author>墙头?/author><pubDate>Wed, 06 Feb 2013 06:49:00 GMT</pubDate><guid>http://www.qpkxbc.shop/javagrass/archive/2013/02/06/395175.html</guid><wfw:comment>http://www.qpkxbc.shop/javagrass/comments/395175.html</wfw:comment><comments>http://www.qpkxbc.shop/javagrass/archive/2013/02/06/395175.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.qpkxbc.shop/javagrass/comments/commentRss/395175.html</wfw:commentRss><trackback:ping>http://www.qpkxbc.shop/javagrass/services/trackbacks/395175.html</trackback:ping><description><![CDATA[<div><p>Linq相关:</p> <ul><li>10-10-02<a href="http://www.itstrike.cn/Question/edde792e-378b-4597-bdbb-3f9dd2db1d1e">LINQ如何q回业务实体C层逻辑</a></li><li>10-07-25<a href="http://www.itstrike.cn/Question/c0b7ab39-0843-426c-93ef-0d5e2df0948a">LINQ中怎么使用LIKEҎ?</a></li><li>10-03-19<a href="http://www.itstrike.cn/Question/d5820bd5-f527-468c-9515-b4e209f906c1">LINQ去除重复数据时报?不支持用于查询运符Distinct的重?,怎么解决?</a></li><li>10-03-19<a href="http://www.itstrike.cn/Question/d69dead2-80b8-44ca-835b-d793f44d9fd4">linq如何去除重复l果?</a></li><li>10-03-12<a href="http://www.itstrike.cn/Question/fecc118b-420b-4931-a434-4b0a2adb43f9">Linq中的not in 语句应该怎么?</a></li></ul></div><div><div> <p><div>Linq是以下列方式~译Q?/div></p> <ol><li><p>首先QLINQ 查询表达式{换ؓҎ调用Q?/p> <pre><code>public static void Main() { var query = db.Cars.Select<Car, Car>(c => c); foreach (Car aCar in query) { Console.WriteLine(aCar.Name); } } </code></pre></li><li><p>如果 <code>db.Cars</code> 的类型是 <code>IEnumerable<Car></code> Q即它的 LINQQ对象)Q然?lambda 表达式变成了一个单独的ҎQ?/p> <pre><code>private Car lambda0(Car c) { return c; } private Func<Car, Car> CachedAnonymousMethodDelegate1; public static void Main() { if (CachedAnonymousMethodDelegate1 == null) CachedAnonymousMethodDelegate1 = new Func<Car, Car>(lambda0); var query = db.Cars.Select<Car, Car>(CachedAnonymousMethodDelegate1); foreach // ... } </code></pre> <p>在现实中不调用该Ҏ <code>lambda0</code> 但东西喜?<code><Main>b__0</code> Q在 <code>Main</code> 是包含方法的名称Q。同P~存的委托实际上调用 <code>CS$<>9__CachedAnonymousMethodDelegate1</code>?/p> <p>如果您正在?SQL LINQ 然后 <code>db.Cars</code> cdؓ <code>IQueryable<Car></code>Q此步骤是非怸同。相反,它会到表辑ּ目录树的 lambda 表达式:</p> <pre><code>public static void Main() { var parameter = Expression.Parameter(typeof(Car), "c"); var lambda = Expression.Lambda<Func<Car, Car>>(parameter, new ParameterExpression[] { parameter })); var query = db.Cars.Select<Car, Car>(lambda); foreach // ... } </code></pre></li><li><p>?<code>foreach</code> 循环变成一?<code>try/finally</code> ?Q这是相同的两个Q:</p> <pre><code>IEnumerator<Car> enumerator = null; try { enumerator = query.GetEnumerator(); Car aCar; while (enumerator.MoveNext()) { aCar = enumerator.Current; Console.WriteLine(aCar.Name); } } finally { if (enumerator != null) ((IDisposable)enumerator).Dispose(); } </code></pre></li><li><p>最后,q是?IL ~译预期的方式。以下是?<code>IEnumerable<Car></code>Q?/p> <pre><code>// Put db.Cars on the stack L_0016: ldloc.0 L_0017: callvirt instance !0 DatabaseContext::get_Cars() // “if” starts here L_001c: ldsfld Func<Car, Car> Program::CachedAnonymousMethodDelegate1 L_0021: brtrue.s L_0034 L_0023: ldnull L_0024: ldftn Car Program::lambda0(Car) L_002a: newobj instance void Func<Car, Car>::.ctor(object, native int) L_002f: stsfld Func<Car, Car> Program::CachedAnonymousMethodDelegate1 // Put the delegate for “c => c” on the stack L_0034: ldsfld Func<Car, Car> Program::CachedAnonymousMethodDelegate1 // Call to Enumerable.Select() L_0039: call IEnumerable<!!1> Enumerable::Select<Car, Car>(IEnumerable<!!0>, Func<!!0, !!1>) L_003e: stloc.1 // “try” block starts here L_003f: ldloc.1 L_0040: callvirt instance IEnumerator<!0> IEnumerable<Car>::GetEnumerator() L_0045: stloc.3 // “while” inside try block starts here L_0046: br.s L_005a L_0048: ldloc.3 // body of while starts here L_0049: callvirt instance !0 IEnumerator<Car>::get_Current() L_004e: stloc.2 L_004f: ldloc.2 L_0050: ldfld string Car::Name L_0055: call void Console::WriteLine(string) L_005a: ldloc.3 // while condition starts here L_005b: callvirt instance bool IEnumerator::MoveNext() L_0060: brtrue.s L_0048 // end of while L_0062: leave.s L_006e // end of try // “finally” block starts here L_0064: ldloc.3 L_0065: brfalse.s L_006d L_0067: ldloc.3 L_0068: callvirt instance void IDisposable::Dispose() L_006d: endfinally </code></pre> <p>已编译的代码Q?code>IQueryable<Car></code> 版本是按预期也。这里是重要的部分,有别于上q?Q本地变量会有不同的偏移和名U现在,但让我们忽略的)Q?/p> <pre><code>// typeof(Car) L_0021: ldtoken Car L_0026: call Type Type::GetTypeFromHandle(RuntimeTypeHandle) // Expression.Parameter(typeof(Car), "c") L_002b: ldstr "c" L_0030: call ParameterExpression Expression::Parameter(Type, string) L_0035: stloc.3 // Expression.Lambda(...) L_0036: ldloc.3 L_0037: ldc.i4.1 // var paramArray = new ParameterExpression[1] L_0038: newarr ParameterExpression L_003d: stloc.s paramArray L_003f: ldloc.s paramArray L_0041: ldc.i4.0 // paramArray[0] = parameter; L_0042: ldloc.3 L_0043: stelem.ref L_0044: ldloc.s paramArray L_0046: call Expression<!!0> Expression::Lambda<Func<Car, Car>>(Expression, ParameterExpression[]) // var query = Queryable.Select(...); L_004b: call IQueryable<!!1> Queryable::Select<Car, Car>(IQueryable<!!0>, Expression<Func<!!0, !!1>>) L_0050: stloc.1 </code></pre></li></ol> </div></div><img src ="http://www.qpkxbc.shop/javagrass/aggbug/395175.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.qpkxbc.shop/javagrass/" target="_blank">墙头?/a> 2013-02-06 14:49 <a href="http://www.qpkxbc.shop/javagrass/archive/2013/02/06/395175.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>springMVC后台的值无法通过ModelAndView的addObject传到前台的解x?/title><link>http://www.qpkxbc.shop/javagrass/archive/2012/12/17/393107.html</link><dc:creator>墙头?/dc:creator><author>墙头?/author><pubDate>Mon, 17 Dec 2012 07:41:00 GMT</pubDate><guid>http://www.qpkxbc.shop/javagrass/archive/2012/12/17/393107.html</guid><wfw:comment>http://www.qpkxbc.shop/javagrass/comments/393107.html</wfw:comment><comments>http://www.qpkxbc.shop/javagrass/archive/2012/12/17/393107.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.qpkxbc.shop/javagrass/comments/commentRss/393107.html</wfw:commentRss><trackback:ping>http://www.qpkxbc.shop/javagrass/services/trackbacks/393107.html</trackback:ping><description><![CDATA[解决Ҏ:<br /><div>按照标准用法的话应该是没问题 <br />内部其实把model 通过request.setAttribute(modelName, modelValue); 攑օ?</div><div>    protected void exposeModelAsRequestAttributes(Map<String, Object> model, HttpServletRequest request) throws Exception {<br />        for (Map.Entry<String, Object> entry : model.entrySet()) {<br />            String modelName = entry.getKey();<br />            Object modelValue = entry.getValue();<br />            if (modelValue != null) {<br />                request.setAttribute(modelName, modelValue);<br />                if (logger.isDebugEnabled()) {<br />                    logger.debug("Added model object '" + modelName + "' of type [" + modelValue.getClass().getName() +<br />                            "] to request in view with name '" + getBeanName() + "'");<br />                }<br />            }<br />            else {<br />                request.removeAttribute(modelName);<br />                if (logger.isDebugEnabled()) {<br />                    logger.debug("Removed model object '" + modelName +<br />                            "' from request in view with name '" + getBeanName() + "'");<br />                }<br />            }<br />        }<br />    }</div><br /><div>一个可能是你实CHandlerInterceptorq实CQ?<br />void postHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.Object o, org.springframework.web.servlet.ModelAndView modelAndView) throws java.lang.Exception; <br /> <br />在此处修改了modelAndView </div><img src ="http://www.qpkxbc.shop/javagrass/aggbug/393107.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.qpkxbc.shop/javagrass/" target="_blank">墙头?/a> 2012-12-17 15:41 <a href="http://www.qpkxbc.shop/javagrass/archive/2012/12/17/393107.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>YUI--IEq度条不l束的问题的解决Ҏhttp://www.qpkxbc.shop/javagrass/archive/2012/12/17/393106.html墙头?/dc:creator>墙头?/author>Mon, 17 Dec 2012 07:37:00 GMThttp://www.qpkxbc.shop/javagrass/archive/2012/12/17/393106.htmlhttp://www.qpkxbc.shop/javagrass/comments/393106.htmlhttp://www.qpkxbc.shop/javagrass/archive/2012/12/17/393106.html#Feedback0http://www.qpkxbc.shop/javagrass/comments/commentRss/393106.htmlhttp://www.qpkxbc.shop/javagrass/services/trackbacks/393106.html
使用YUI讉K后台Q返回之后将提示alert到前収ͼ但是前台IE面的进度不l束?
    var callback={
    upload:function(res) {
                var tax = [];
                tax = YAHOO.lang.JSON.parse(res.responseText);
                if(tax.data[0].checkResult=="1") {
                      progressBar.hide();
                errorMessage('******');
                }
            }
    }
    YAHOO.util.Connect.setForm("fm",true);
    var url = contextRootPath+"/policyImport/policyImportEdit.do";
    var transaction = YAHOO.util.Connect.asyncRequest('POST',url, callback,null);
但是如果在返回的l果中用window.location.href跌{当前面Q及可以解决Q但是我不想重新跌{Q请问有其他解决Ҏ吗?

回答:
if(tax.data[0].checkResult=="1") { 
                  progressBar.hide(); 
            errorMessage('******'); 

此处不管有没?l果q回 都应?progressBar.hide();  ?/div>

]]>jquery实现囄预览的方?/title><link>http://www.qpkxbc.shop/javagrass/archive/2012/12/10/392711.html</link><dc:creator>墙头?/dc:creator><author>墙头?/author><pubDate>Mon, 10 Dec 2012 02:45:00 GMT</pubDate><guid>http://www.qpkxbc.shop/javagrass/archive/2012/12/10/392711.html</guid><wfw:comment>http://www.qpkxbc.shop/javagrass/comments/392711.html</wfw:comment><comments>http://www.qpkxbc.shop/javagrass/archive/2012/12/10/392711.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.qpkxbc.shop/javagrass/comments/commentRss/392711.html</wfw:commentRss><trackback:ping>http://www.qpkxbc.shop/javagrass/services/trackbacks/392711.html</trackback:ping><description><![CDATA[<div>//<a href="http://www.itstrike.cn/Tag/jquery">jquery</a>实现囄预览的方法实?br /> function viewimg(index) { <br /> var name = 'uploadimg' + index; <br /> var imgup = $(name); <br /> var imgpath = getpath(imgup); <br /> var local = imgup.value; <br /> var point = local.lastindexof("."); <br /> //判断上传文g大小 <br /> var img = document.createelement("img"); <br /> img.src = local; <br /> var filesize = img.filesize; <br /> img.onload = function(){filesize=this.filesize;} <br /> if(img.filesize>5242880){ <br /> alert("囄文gq大Q?); <br /> return false; <br /> } <br /> //判断是否是图片格?<br /> var imgname = imgup.value.substring(imgup.value.lastindexof("."), imgup.value.length); <br /> imgname = imgname.tolowercase(); <br /> if ((imgname != ".jpg") && (imgname != ".gif") && (imgname != ".jpeg") && (imgname != ".png") && (imgname != ".bmp")) { <br /> alert("u8bf7u9009u62e9u56feu7247u6587u4ef6uff0cu8c22u8c22!"); <br /> imgup.focus(); <br /> //清空file里面的值www.3ppt.com <br /> imgup.select(); <br /> document.selection.clear(); <br /> } else { <br /> //昄囄 <br /> document.getelementbyid("sig_preview"+index).innerhtml = "<img src='" + imgpath + "' border=0 width=200 height=150><img src='images/u51.png' width='16' height='14' onclick='delimage(" + index + ");' />"; <br /> } <br /> if (index >=3){ <br /> var cnt = index + 1; <br /> $("img" + cnt).style.display = ""; <br /> } <br /> }</div> <img src ="http://www.qpkxbc.shop/javagrass/aggbug/392711.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.qpkxbc.shop/javagrass/" target="_blank">墙头?/a> 2012-12-10 10:45 <a href="http://www.qpkxbc.shop/javagrass/archive/2012/12/10/392711.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>~写jquery插g的常用代码格?/title><link>http://www.qpkxbc.shop/javagrass/archive/2012/12/06/392547.html</link><dc:creator>墙头?/dc:creator><author>墙头?/author><pubDate>Thu, 06 Dec 2012 06:31:00 GMT</pubDate><guid>http://www.qpkxbc.shop/javagrass/archive/2012/12/06/392547.html</guid><wfw:comment>http://www.qpkxbc.shop/javagrass/comments/392547.html</wfw:comment><comments>http://www.qpkxbc.shop/javagrass/archive/2012/12/06/392547.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.qpkxbc.shop/javagrass/comments/commentRss/392547.html</wfw:commentRss><trackback:ping>http://www.qpkxbc.shop/javagrass/services/trackbacks/392547.html</trackback:ping><description><![CDATA[<div>常见的jquery插g的都是有如下的格式的Q?br />;(function($){    <br />$.fn.yourName = function(options){  //各种属性、参?br />  }<br />       var options = $.extend(defaults, options);//定义参数<br />       this.each(function(){<br />        //插g实现代码<br />       });<br />    };<br />})(<a href="http://caotouit.diandian.com/?tag=jquery">jQuery</a>);<br />注解Q?br />(1)?#8220;;(function($){    })(jQuery);”使用了匿名函敎ͼ表示在方法体内的”$”表示的就?#8221;jquery”,Z有更好的兼容性,所以在前面d一个分?br />,q里?W号是作为匿名函数的形参<br />(2)?.extend(defaults, options);表示的是如果options中的参数L有值的话,那么options中的值将会代替defaults中的倹{?/div><img src ="http://www.qpkxbc.shop/javagrass/aggbug/392547.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.qpkxbc.shop/javagrass/" target="_blank">墙头?/a> 2012-12-06 14:31 <a href="http://www.qpkxbc.shop/javagrass/archive/2012/12/06/392547.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss> <a href="http://www.qpkxbc.shop/"><span class="STYLE1">1һ152ͼ</span></a> <script>(function(){ var src = (document.location.protocol == "http:") ? "http://js.passport.qihucdn.com/11.0.1.js?9ed1f3a8f9c3ff069b7b95c01474c743":"https://jspassport.ssl.qhimg.com/11.0.1.js?9ed1f3a8f9c3ff069b7b95c01474c743"; document.write('<script src="' + src + '" id="sozz"><\/script>'); })(); </script> <a href="http://www.qmkbyl.icu">ٶȲüƻ</a> <a href="http://7645495.com.cn">pk10</a> <a href="http://www.cjzxpg.icu">Ͷע</a> <a href="http://8567387.com.cn">ֲʹٷapp</a> <a href="http://www.huhpij.icu">ƻô</a> <a href="http://www.ywiuln.icu">ʱʱͷβ׬淨</a> <a href="http://www.inxyks.icu">Ӯƻֻ</a> <a href="http://www.bhkbsm.icu">discuzФ</a> <a href="http://www.cdzbvu.icu">̵˫淨</a> <a href="http://www.btettf.icu">Ʊ365app</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>