依赖关系,可以理解成“USE-A”关系即使用关系。 依赖关系是一种使用关系,如果A类中的某个方法使用了B类对象,那么就可以说A类依赖B类。 A类方法的形式参数是B类类型。也就是说A类对象如果要使用方法f,就必须要一个B类对象作为参数方可实现,这种情况被称为A依赖B 注意:依赖的使用关系不只是局限在参 ...
分类:
其他好文 时间:
2016-04-30 19:33:28
阅读次数:
172
Rather than using Strings as the keys in a Hash, it’s better practice to use Symbols. Symbols are just like Strings except they’re faster and take up ...
分类:
其他好文 时间:
2016-04-30 15:33:16
阅读次数:
156
seajs模块化开发使用“define”函数定义一个模块require 引用模块 sea.js加载1、seajs.config 全局配置2、seajs.use 模块加载 require.async 异步加载模块模块define(function(require, exports, module) { ...
分类:
Web程序 时间:
2016-04-30 11:13:10
阅读次数:
165
1.创建macow工程
一,new maven project --->创建Create a simple project勾选上
修改pom.xml的packaging为pom
Project configuration is not up-to-date with pom.xml. Run Maven->Update Project or use Quick Fix.这个错误直接maven...
分类:
编程语言 时间:
2016-04-29 18:44:33
阅读次数:
205
Use tag
The tag helps eliminateredundant view groups in your view hierarchy when including one layout
这标签,帮助我们在include一个布局的时候,消除多余的View Groups,例如,你的主布局文件是一个竖直的linearlayout。
Lineary...
分类:
移动开发 时间:
2016-04-29 18:10:57
阅读次数:
197
!/usr/bin/env pythonCopyright 2013-2014 NaviNet Inc.#Licensed under the Apache License, Version 2.0 (the “License”);you may not use this file except in compliance with the License.You may obtain a copy...
分类:
其他好文 时间:
2016-04-29 17:47:34
阅读次数:
233
前言: 今天分享一个很漂亮的功能强大的图表库,希望对有需要的同学, 有帮助, 喜欢请点个赞,支持一下.谢谢~
在项目中如何加入Swift库请看我的上一篇文章
http://www.jianshu.com/p/fd91c10c9f55
编译环境: Xcode7.3添加Charts图表库// 在Podfile中
use_frameworks!
pod 'Charts'import Charts...
分类:
编程语言 时间:
2016-04-29 17:10:28
阅读次数:
740
With the inclusion of XAudio2
in Windows 8, there’s been renewed interest in learning how to use this API. The documentation on MSDNis
of course a great place to start, and be sure to read through...
分类:
其他好文 时间:
2016-04-29 16:32:29
阅读次数:
187
IPC是SYS/BIOS处理核间通信的组件
IPC的几种应用方式(下面中文名字是自行翻译,旁边有英文=_=||,另外下面的配图中的蓝色表示需要调用模块的APIs,而红色模块表示仅仅需要配置(如在.cfg中配置),而灰色模块表示是非必须的):
(1)最小使用(Minimal use):这种情况是通过核间的通知机制(notification)来实施的,而一个通知所携带的...
分类:
其他好文 时间:
2016-04-29 16:24:58
阅读次数:
932
基本操作查看数据库show databases;
指定字符集create database day15
default character set utf8
查看字符集show create database day15;
删除drop database day15
修改字符集alter database day15 default character set gbk;
使用数据库USE...
分类:
数据库 时间:
2016-04-29 15:32:30
阅读次数:
211