创建一个JNIDemo的Android工程在项目下创建一个文件夹jni。(注意必须是jni目录)在jni目录下创建两个文件:Android.mk 和
first_jni.c(.c文件的名字可以任意)编写Android.mk文件:(参见Demo当中的Androd.mk文件)LOCAL_MODULE :...
分类:
移动开发 时间:
2014-05-08 18:04:14
阅读次数:
383
Consider a simple function that adds the first
N integers. (e.g.sum(5) = 1 + 2 + 3 + 4 + 5 = 15).Here is a simple Python
implementation that uses recu...
分类:
其他好文 时间:
2014-05-08 17:35:09
阅读次数:
286
window.onload=function() {
var img=document.getElementById("img").children;
var lis=document.getElementById('ul').getElementsByTagName("li"); //这里是获取需要执行动态效果的demo
...
分类:
编程语言 时间:
2014-05-08 16:06:15
阅读次数:
386
使用VLD测有没内存泄露的时候,出现(File and line number not available): (Function name unavailable)
查看VS控制台,发现
已加载“C:/WINDOWS/system32/dbghelp.dll”
说明VS加载了WINDOWS的dll而不是最新的VLD的dbghelp.dll
解决方案:
只需把VLD 安装路径下...
分类:
其他好文 时间:
2014-05-08 15:41:04
阅读次数:
354
在lua中创建一个Actor对象function Actor.new() local temp
= {} setmetatable(temp, Actor) temp.x = 10 temp.y = 20 return tempendobj =
Actor.new()那么obj.x = 1...
分类:
其他好文 时间:
2014-05-08 15:04:41
阅读次数:
348
转自:http://blog.csdn.net/longyangyangyang/article/details/6128141html代码: 0 1 2 3
4 5 6 7 js代码//通过javascrip方法获取值function chk(){ var o...
分类:
Web程序 时间:
2014-05-08 08:34:37
阅读次数:
304
//初始化对象并发出XMLHttpRequest请求var xmlHttp;function
getXmlHttp(){ if(window.ActiveXObject){ xmlHttp = new
ActiveXObject("MICROSOFT.XMLHTTP"); ...
分类:
其他好文 时间:
2014-05-08 07:19:46
阅读次数:
378
Given an array of integers, find two numbers
such that they add up to a specific target number.The function twoSum should
return indices of the two nu...
分类:
其他好文 时间:
2014-05-08 06:33:29
阅读次数:
339
每次操作select都要查资料,干脆总结一下。为select设置placeholder为Select添加事件,当选择其中一项时触发$("#select_id").change(function(){
//code...});jQuery获取Select选择的Text和Value:var che...
分类:
Web程序 时间:
2014-05-08 05:48:25
阅读次数:
509
Polyfill Function.prototype.bind的四个阶段
分类:
其他好文 时间:
2014-05-08 05:40:18
阅读次数:
342