- 博客(13)
- 资源 (1)
- 收藏
- 关注
原创 用CountDownLatch实现主线程等待子线程
多线程中,主线程先等待,等待其他子线程运行结束才执行。如果不加限制,主线程和子线程是并发执行的,主线程并没有等待。若果碰到求“总的所有线程运行时间”,“线程运行结束才进行显示的语句”等业务要求,则不能满足。3.1)对于只有一个子线程,如果主线程需要等待子线程执行完成,再继续向下执行,可以使用Thread的join()方法。3.2)对于多个子线程,比如主线程需要等待5个子线程,这5个线程
2015-03-31 15:23:20 949
原创 数据库迁移(oracle到mysql)
数据库迁移:oracle to mysql1.power_designer 更改表结构,修改必要的数据类型使其适应MySQL(选database 栏,再选mysql) 2.用power_designer生成的sql语句,批量创建数据库表导入Mysql中:注意编码:建数据库选择utf-8,创建表时也要提前指定好utf-8编码,创建数据库表语句末尾加上ENGINE=InnoDB D
2014-08-27 17:27:22 638
转载 Problem of testing SSH in git behind proxy
setting http.proxy will not work for ssh. You need to proxy your ssh connection. See this description. To summarize:Start git-cmd.bat and create ~/.ssh/config (notepad %home%\.ssh\config.)Pr
2014-08-19 10:00:35 591
转载 seaJS && requireJS
RequireJS与SeaJS比较不同之处两者的主要区别如下:1)遵循的规范不同。RequireJS 遵循 AMD(异步模块定义)规范,Sea.js 遵循 CMD (通用模块定义)规范。规范的不同,导致了两者 API 不同。对于依赖的模块,AMD 是提前执行,CMD 是延迟执行。不过 RequireJS 从 2.0 开始,也改成可以延迟执行(根据写法不同,处理方式不同)。CMD 推
2014-07-15 17:02:27 572
转载 $q & promise service
This is not going to be a complete answer to your question, but hopefully this will help you and others when you try to read the documentation on the $q service. It took me a while to understand it.
2014-07-07 14:58:00 785
原创 angular——sportsStore项目的问题与解决
1 How to prevent AngularJS from displaying the view until the Ajax request has been completed (页面)
2014-07-04 17:03:17 603
原创 RequireJS && AngularJS
每个模块define时一定要把 依赖的每一个模块都注入进去。在 app.js中 定义 sportsStore 模块,并在该模块中定义路径变换,即 app.config(['$routeProvider', function($routeProvider) {$routeProvider.when("/checkout",{templateUrl:"views/checkoutS
2014-07-03 17:53:36 955
转载 grunt 用法小结
npm install -g grunt-cli上述命令执行完后,grunt 命令就被加入到你的系统路径中了,以后就可以在任何目录下执行此命令了。CLI 是如何工作的每次运行grunt 时,他就利用node提供的require()系统查找本地安装的 Grunt。正是由于这一机制,你可以在项目的任意子目录中运行grunt 。Grunt 项目一般需要在你的项目中添加两份文件:pac
2014-06-23 18:18:11 789
转载 requirejs优化:使用r.js压缩文件
命令行方式:node r.js -o baseUrl=. paths.jquery=some/other/jquery name=main out=main-built.js
2014-06-14 22:08:54 1131
转载 RequireJS& AMD规范
RequireJSRequireJS的基本思想是,通过define方法,将代码定义为模块;通过require方法,实现代码的模块加载。首先,将require.js嵌入网页,然后就能在网页中进行模块化编程了。scriptdata-main="scripts/main" src="scripts/require.js">/script>上面代码的data-main属性不可省略,用于指定
2014-06-12 10:40:52 868
转载 @Override标签背后的小秘密---记录java的思行合一(作者:leeon)
@Override标签 一般用途 帮助自己检查是否正确的复写了父类中已有的
2014-06-11 21:56:14 556
原创 angularJS 小结
Modules When declaring a module, we need to pass two parameters to the method. The first is the name of the module we are creating. The second is the list of dependencies, otherwise known as injec
2014-06-11 11:25:50 1229
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人