在Android4.2的源码Build/prduct_config.mk里面遇到一个遗憾:# Convert a short name like "sooner" into the path to the product
# file defining that product.
#
INTERNAL_PRODUCT := $(call resolve-short-product-name, $(...
分类:
移动开发 时间:
2014-08-07 23:15:05
阅读次数:
340
JS函数调用的四种方法:方法调用模式,函数调用模式,构造器调用模式,apply,call调用模式1.方法调用模式:先定义一个对象,然后在对象的属性中定义方法,通过myobject.property来执行方法,this即指当前的myobject对象。var blogInfo={ blogId:12.....
分类:
Web程序 时间:
2014-08-07 21:43:10
阅读次数:
260
关于 zend studio 中有些php 内置函数没有提示,或是有‘小黄色感叹号’**在用 Zend Studio 编写 PHP 项目时发现调用系统函数时调试正常, 但是在编写代码时却提示函数未定义"Call to undefined function ", 在左侧语法检测状态区域栏总是显示个小黄...
分类:
Web程序 时间:
2014-08-06 22:31:12
阅读次数:
326
1 public class AgeBelow18Exception extends RuntimeException {2 /*public String getMessage() {3 return "Please Call Users Above 18 Years";4...
分类:
其他好文 时间:
2014-08-06 22:14:32
阅读次数:
241
先上cancel方法源码和注解 /** * Cancel the dialog. This is essentially the same as calling {@link #dismiss()}, but it will * also call your {@link Dia...
分类:
其他好文 时间:
2014-08-06 18:36:51
阅读次数:
267
【原因分析】 ????不详,可能和Run?Android?Lint有点关系吧。就是创建项目时,我们设置了最低版本API?Level,比如我的是8,因此,Eclipse检查我调用的API后,发现版本号不能向低版本兼容,比如我用的“Not...
分类:
移动开发 时间:
2014-08-06 10:42:41
阅读次数:
238
安装完后,打开后台就看到这个,特别烦,想立马干掉它。
找到文件admin/template/start.htm
文件找出所有的
Ajax.call('cloud.php?is_ajax=1&act=cloud_remind','', cloud_api, 'GET', 'JSON');
全部在前面打个双斜杠“//” 就可以了 !
下面就是效果截图:...
分类:
其他好文 时间:
2014-08-06 02:03:11
阅读次数:
225
1、编译成android时,需要修改jni/android.mk,每个cpp都修改一下太麻烦,可以让他自动识别。
# 遍历目录及子目录的函数
define walk
$(wildcard $(1)) $(foreach e, $(wildcard $(1)/*), $(call walk, $(e)))
endef
# 遍历Classes目录
ALLFILES...
分类:
其他好文 时间:
2014-08-05 15:58:19
阅读次数:
224
function curry(fn){ var slice = Array.prototype.slice; var arr = slice.call(arguments,1); return function(){ var newArr = slice.call(ar...
分类:
编程语言 时间:
2014-08-05 15:22:29
阅读次数:
220
import threading
def tryfinally(finallyf):
u"returns a decorator that adds try/finally behavior with given no-argument call in the finally"
print "tryfinally"
def decorator(callable):
p...
分类:
编程语言 时间:
2014-08-05 11:17:29
阅读次数:
226