在很多项目中,我们经常需要使用JS,在页面前面对前台的某些元素做做修改,js 
的replace()方法就必不可少。经常使用"ABCABCabc".replace("A","B")的同学应该会比较清楚,改语句的最终结果是BBCABC,这种方法只能替换第一个匹配的元素。如果替换所有呢?使用正则表达式即可...
                            
                            
                                分类:
Web程序   时间:
2014-04-29 14:40:29   
                                阅读次数:
689
                             
                         
                    
                        
                            
                            
                                I had been waiting for the latest MySQL 
connector for .NET to come out so I can move on to the new and sleek Visual 
Studio 2012 for my projects. Found...
                            
                            
                                分类:
数据库   时间:
2014-04-29 14:17:54   
                                阅读次数:
753
                             
                         
                    
                        
                            
                            
                                创建方式有两种:通过Eclipse创建在工具栏上选择New》android》android 
application project,或者在导航栏上选择file》new》project》android》android application 
project。在出现的窗口上填上与选择你的Applicat...
                            
                            
                                分类:
移动开发   时间:
2014-04-29 13:55:22   
                                阅读次数:
560
                             
                         
                    
                        
                            
                            
                                @Html.ActionLink代码:HtmlHelper@Html.ActionLink("默认","Index")@Html.ActionLink("带控制器", 
"Index", "RsvpForm")@Html.ActionLink("带默认路由参数", "Index", new {page...
                            
                            
                                分类:
Web程序   时间:
2014-04-29 11:13:46   
                                阅读次数:
666
                             
                         
                    
                        
                            
                            
                                http://hi.baidu.com/mingyuejingque/item/78e71aff57ae9ec5a835a2e4感谢mingyuejingquest 
= avformat_new_stream( m_oc, NULL); if (!st) { fprintf(stderr, ...
                            
                            
                                分类:
其他好文   时间:
2014-04-29 10:41:46   
                                阅读次数:
441
                             
                         
                    
                        
                            
                            
                                项目里的朋友圈页面,每幅图片的评论内容里面,有不同的用户进行评论,起初想法是点击用户名直接进行回复,后来看微信都是点击评论内容进行回复评论的发起人,这个好做,把这个textview绑定一个监听器就ok了 
后来再一想,如果要实现类似微信点击用户名就进入用户的主页,怎么让用户名可以点击呢?...
                            
                            
                                分类:
微信   时间:
2014-04-29 10:21:45   
                                阅读次数:
735
                             
                         
                    
                        
                            
                            
                                Dictionarydic=lst.ToDictionary(newFunc(c=>c.Id),newFunc(c=>c.Num));//如果觉得上面的写法太复杂,还可以简化为//Dictionary 
dic = lst.ToDictionary(c => c.Id, c => c.Num...
                            
                            
                                分类:
其他好文   时间:
2014-04-29 10:18:46   
                                阅读次数:
339
                             
                         
                    
                        
                            
                            
                                相对于JLabel显示提示文字,JTextArea有一个先天优势:文字可以拷贝出来。经过下面设置它也能在外观上和JLabel一致。代码如下:JTextArea 
txtArea=new JTextArea(5,20);// 初始化// 设置文字txtArea.setText("We needto up...
                            
                            
                                分类:
其他好文   时间:
2014-04-29 09:33:45   
                                阅读次数:
544
                             
                         
                    
                        
                            
                            
                                April Fools Day Contest 
2014A、C、H三道题目===================================================================A. 
The Great Game这题怎没看懂。。看了官方题解真是恍然大悟啊,原来是石头剪刀...
                            
                            
                                分类:
其他好文   时间:
2014-04-29 09:24:46   
                                阅读次数:
404
                             
                         
                    
                        
                            
                            
                                WPF调用WinForm中的 OpenFileDialog 和 FolderBrowserDialog 
来实现响应的功能对应的引用程序集:using System.Windows.Forms; OpenFileDialog openFileDialog = new 
OpenFileDialog();...
                            
                            
                                分类:
其他好文   时间:
2014-04-29 09:24:45   
                                阅读次数:
404