一、原始写法模块就是实现特定功能的一组方法。只要把不同的函数(以及记录状态的变量)简单地放在一起,就算是一个模块。 function m1(){ //... } function m2(){ //... }上面的函数m1()和m2(),组成一个模块。使用的时候,直接调用就行了。这...
                            
                            
                                分类:
其他   时间:
2014-12-22 22:33:32   
                                收藏:
0  评论:
0  赞:
0  阅读:
373
                             
                         
                    
                        
                            
                            
                                package com.yarin.android.Examples_04_23;import android.app.Activity;import android.app.Notification;import android.app.NotificationManager;import and...
                            
                            
                                分类:
其他   时间:
2014-12-22 22:33:22   
                                收藏:
0  评论:
0  赞:
0  阅读:
400
                             
                         
                    
                        
                            
                            
                                最近没什么实质性的工作,正好有点时间,就想学学别人的代码。也看过一点源码,算是有了点阅读的经验,于是下定决心看下spring这种大型的项目的源码,学学它的设计思想。 手码不易,转载请注明:xingoo 这篇博文你可以了解到: 1 Spring jar包以及源码使用 2 简单的spring...
                            
                            
                                分类:
编程语言   时间:
2014-12-22 22:33:12   
                                收藏:
0  评论:
0  赞:
0  阅读:
347
                             
                         
                    
                        
                            
                            
                                Download the android source from china mirrors以前都是从Google的站点下载同步更新的,但是现在有了国内的镜像站点就好多了帮助 https://wiki.tuna.tsinghua.edu.cn/MirrorUsage/android仓库地址:git:...
                            
                            
                                分类:
移动平台   时间:
2014-12-22 22:33:02   
                                收藏:
0  评论:
0  赞:
1  阅读:
21462
                             
                         
                    
                        
                            
                            
                                1.问题:用官方的例子,首页可以正常打开,但比如说 /signup,contact/index 这样的连接都是出现404 file not find,这样的错误。以上问题在Apache web server是好的。解决方法:URL重写导致。直接访问localhost/index.php?_url=/...
                            
                            
                                分类:
Web开发   时间:
2014-12-22 22:32:52   
                                收藏:
0  评论:
0  赞:
0  阅读:
327
                             
                         
                    
                        
                            
                            
                                document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() { window.shareData = { "timeLineLink": "", ...
                            
                            
                                分类:
微信   时间:
2014-12-22 22:32:23   
                                收藏:
0  评论:
0  赞:
0  阅读:
362
                             
                         
                    
                        
                            
                            
                                照猫画虎,写了一个函数,并加了一个快捷键,为octopress文章增加一些特定的内容,好在文章列表和首页处显示文章简介或摘要,并给文章建立目录。之所以把这两部分合并在一起,是因为加了目录后,目录就成了文章最前面的内容,这时目录会作为文章开头内容显示在首页,不大好看,所以这两个东东一般是要配合使用的。...
                            
                            
                                分类:
系统服务   时间:
2014-12-22 22:32:12   
                                收藏:
0  评论:
0  赞:
0  阅读:
351
                             
                         
                    
                        
                            
                            
                                老版本:String {\w+}=>Public String \12012中:String (\w+)=>Public String $1
                            
                            
                                分类:
其他   时间:
2014-12-22 22:32:02   
                                收藏:
0  评论:
0  赞:
0  阅读:
276
                             
                         
                    
                        
                            
                            
                                Hibernate查询uodate-megre-saveorupdate-delete方法使用update这个方法的使用1:先加载然后再修改/** * 修改通过get方法获得的持久化对象 */ private static void update1() { Con...
                            
                            
                                分类:
Web开发   时间:
2014-12-22 22:31:42   
                                收藏:
0  评论:
0  赞:
0  阅读:
336
                             
                         
                    
                        
                            
                            
                                Gearman任务分布系统部署windows平台_使用Cygwin
                            
                            
                                分类:
Windows开发   时间:
2014-12-22 22:31:32   
                                收藏:
0  评论:
0  赞:
0  阅读:
1133
                             
                         
                    
                        
                            
                            
                                1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 namespace ConsoleApplication1 7 { 8 class 闰平年 ...
                            
                            
                                分类:
其他   时间:
2014-12-22 22:31:22   
                                收藏:
0  评论:
0  赞:
0  阅读:
339
                             
                         
                    
                        
                            
                            
                                declare @sum int,@count intselect @sum=0,@count=0label_1:select @count=@count+1select @sum=@sum+@countif @count<=6goto label_1select @count '数值',@sum ...
                            
                            
                                分类:
数据库技术   时间:
2014-12-22 22:30:52   
                                收藏:
0  评论:
0  赞:
0  阅读:
297
                             
                         
                    
                        
                            
                            
                                用了这么久的 iPhone,这些技巧你可能都还不知道哦。
                            
                            
                                分类:
其他   时间:
2014-12-22 22:30:42   
                                收藏:
0  评论:
0  赞:
0  阅读:
275
                             
                         
                    
                        
                            
                            
                                运算符:一、算术运算符: + - * /% ——取余运算 取余运算的应用场景:1.奇偶数的区分。2.把数变化到某个范围之内。——彩票生成。3.判断能否整除。——闰年、平年。 int a = 10, b = 3;Console.WriteLine("10/3=" + (a / b));Console....
                            
                            
                                分类:
其他   时间:
2014-12-22 22:30:32   
                                收藏:
0  评论:
0  赞:
0  阅读:
311
                             
                         
                    
                        
                            
                            
                                Aop又叫面向切面编程,用过spring的同学肯定对它非常熟悉,而在js中,AOP是一个被严重忽视的技术点,这篇就通过下面这几个小例子,来说说AOP在js中的妙用.1, 防止window.onload被二次覆盖.2,无侵入的统计代码.3, 分离表单请求和校验.4,给ajax请求动态添加参数.5,职责...
                            
                            
                                分类:
Web开发   时间:
2014-12-22 22:30:12   
                                收藏:
0  评论:
0  赞:
0  阅读:
445
                             
                         
                    
                        
                            
                            
                                微软MVP Openday 1月30日在北京召开,到时全国上百位 MVP 专家将齐聚北京。当然还有亚太的其他国家地区的MVP 也会来北京,1月31日微软 MVP 项目组主办的年度微软技术社区分享大会--2015 微软社区大课堂 Community Camp !。 超过 30 位微软最有价值专家 MV...
                            
                            
                                分类:
编程语言   时间:
2014-12-22 22:30:02   
                                收藏:
0  评论:
0  赞:
0  阅读:
272
                             
                         
                    
                        
                            
                            
                                With ECMAScript 6 now feature complete, any further changes to the core of JavaScript will happen in ECMAScript 7. I’m pretty excited about the change...
                            
                            
                                分类:
其他   时间:
2014-12-22 22:29:52   
                                收藏:
0  评论:
0  赞:
0  阅读:
300
                             
                         
                    
                        
                            
                            
                                MSAlertControllerYou can use AlertController in iOS7!! 你可以在iOS中使用AlertController了MSAlertController has same feature at UIAlertViewController.MSAlertCo...
                            
                            
                                分类:
其他   时间:
2014-12-22 22:29:42   
                                收藏:
0  评论:
0  赞:
0  阅读:
481
                             
                         
                    
                        
                            
                            
                                1 @echo off 2 set /p projectName=请输入项目名称: 3 if "%projectName%"=="" goto inputError 4 set /p packageName=请输入包标示名: 5 if "%packageName%"=="" got...
                            
                            
                                分类:
编程语言   时间:
2014-12-22 22:29:32   
                                收藏:
0  评论:
0  赞:
0  阅读:
860
                             
                         
                    
                        
                            
                            
                                ';for( $i = 0 ; $i '; flush(); ob_flush(); sleep(1);}echo 'End ...';?>
                            
                            
                                分类:
Web开发   时间:
2014-12-22 22:29:22   
                                收藏:
0  评论:
0  赞:
0  阅读:
230