问题如题: Eclipse中有一种叫做存取限制的机制,来防止你错误使用那些非共享的API。通常来说,Eclipse做的是对的,因为两点,我们不想要使用非共享API的,而且Eclipse知道什么是共享的和非共享的API。但是有时我们想要使用非共享的API,比如说用gmail的来发送和接收邮件,要用到S ...
分类:
数据库 时间:
2017-10-30 11:24:51
阅读次数:
223
* 1,restrict:A:attributes;E:element;M:comment(注释);C:class * 2,transclude:为true的时候,可以在模版中增加<div ng-transclude></div>来保留标签内部内容.可以处理嵌套 * 3,replace:是否替换指令 ...
分类:
其他好文 时间:
2017-10-25 15:28:02
阅读次数:
198
import java.util.concurrent.Semaphore; /** * * JDK文档使用备注: * Semaphores are often used to restrict the number of threads than * can access some (physic... ...
分类:
其他好文 时间:
2017-10-20 21:45:54
阅读次数:
238
angular.module('myApp',[]) .directive('bookList',function () { return { restrict:'ECAM', controller:function ($scope) { // console.log($scope.a()); ..... ...
分类:
其他好文 时间:
2017-10-19 12:49:34
阅读次数:
167
angular.module('myApp',[]) .directive('bookList',function () { return{ restrict:'ECAM', controller:function ($scope) { console.log($scope); $sco... ...
分类:
其他好文 时间:
2017-10-18 18:22:52
阅读次数:
249
angular.module('myApp',[]) .directive('customTags',function () { return{ restrict:'ECMA', template:'{{user.id}}', replace:true, compile:functi... ...
分类:
其他好文 时间:
2017-10-18 16:08:12
阅读次数:
112
.directive('customTags2',function () { return{ restrict:'ECMA', template:'2', replace:true, priority:-1 } }) .directive('custo... ...
分类:
其他好文 时间:
2017-10-18 14:09:15
阅读次数:
102
使用Xcode 9 导入cocos2d-x 项目,报错 Call to unavailable function 'system': not available on iOS 原因很简单,就是ios 11 不支持这个函数调用了,所以报错。 github 上已经给出了相关fix 的方案,传送门:htt ...
分类:
移动开发 时间:
2017-10-16 11:11:26
阅读次数:
1672
9. Palindrome Number Determine whether an integer is a palindrome. Do this without extra space. click to show spoilers. Some hints: Could negative int ...
分类:
其他好文 时间:
2017-10-09 14:20:54
阅读次数:
153
涉及到的文件: drivers/i2c/i2c-core.c drivers/i2c/i2c-dev.c drivers/i2c/busses/i2c-imx.c 等等 在下面分析的代码中,不想关或者不重要的,我会省略掉。 1. 适配器设备的注册 在Linux内核启动的过程中,会调用到mx6_sab ...
分类:
其他好文 时间:
2017-10-09 10:04:21
阅读次数:
219