js 判断window操作系统 1function detectOS() { var sUserAgent = navigator.userAgent; var isWin = (navigator.platform == "Win32") || (navigator.platform == "Wi... ...
[cpp] view plain copy // 添加所有的手势 - (void) addGestureRecognizerToView:(UIView *)view { // 旋转手势 UIRotationGestureRecognizer *rotationGestureRecognizer = ...
分类:
移动开发 时间:
2017-08-10 13:36:38
阅读次数:
331
vs 删除行尾空格vs2010:Enter: Ctrl+HFind what: :b*$Replace with: [Empty]Look in: Current DocumentFind Option: Use Regular ExpressionsClick: Replace All解释一下正則 ...
分类:
其他好文 时间:
2017-08-10 13:26:10
阅读次数:
137
Spring mvc 提供了扩展 xml 的机制,用来编写自定义的 xml bean ,例如 dubbo 框架,就利用这个机制实现了好多的 dubbo bean,比如 <dubbo:application> 、<dubbo:registry> 等等,只要安装这个标准的扩展方式实现配置即可。 扩展自定 ...
分类:
编程语言 时间:
2017-08-10 13:24:48
阅读次数:
202
截图: 链接: 我的博客 代码: /*********************************************************************************************************************** Includes ***... ...
分类:
其他好文 时间:
2017-08-10 13:19:50
阅读次数:
141
checkstyle-standard-rules.xml <?xml version="1.0" encoding="UTF-8"?><!-- This configuration file was written by the eclipse-cs plugin configuration ed ...
分类:
其他好文 时间:
2017-08-10 11:43:33
阅读次数:
143
spring mvc中的@PathVariable是用来获得请求url中的动态参数的,十分方便,复习下: Java代码 收藏代码 @Controller public class TestController { @RequestMapping(value="/user/{userId}/roles... ...
分类:
其他好文 时间:
2017-08-10 10:30:24
阅读次数:
167
public class fishGame : MonoBehaviour { enum FishDir //设置朝向的枚举 { left, right } FishDir dir; //申明一个方向控制鱼 // Use this for initialization void Start () { ...
分类:
编程语言 时间:
2017-08-10 10:22:08
阅读次数:
182
1.复制数据库 wind:PRIMARY> show dbs; jinri 0.078GB local 1.078GB test 0.078GB wind 0.078GB wind:PRIMARY> use admin; switched to db admin db.runCommand( {co ...
分类:
数据库 时间:
2017-08-10 10:13:08
阅读次数:
200
1 CREATE DATABASE db_test; 2 USE db_test; 3 4 CREATE TABLE t_t( 5 id int PRIMARY KEY NOT NULL auto_increment, 6 birthday date 7 ) 8 9 INSERT INTO t_t ... ...
分类:
数据库 时间:
2017-08-10 01:28:08
阅读次数:
209