上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 17 下一页
摘要: 一共三个文件 一个 MainActivity.java ba.java(自定义baseadapter) 还有一个简单的 布局文件activity_main.xml MainActivity.java文件代码: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceS... 阅读全文
posted @ 2012-11-15 14:47 高捍得 阅读(866) 评论(0) 推荐(0) 编辑
摘要: 代码: public class MainActivity extends Activity { int ci = -1; int[] images = new int[] { R.drawable.a1, R.drawable.a22, R.drawable.a3 }; @Override public void... 阅读全文
posted @ 2012-11-15 13:02 高捍得 阅读(1328) 评论(0) 推荐(0) 编辑
摘要: 实现功能:canvas画板。 可拖动,可缩放 用JQuery实现 事件, Jquery实现的 缩放和拖放 ,所以需要引入相关的JS文件。 下面是代码部分: <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content... 阅读全文
posted @ 2012-10-26 22:35 高捍得 阅读(815) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head> <title></title> <script src="http://maps.google.com/maps/api/js?sensor=false"></script> <script type="text/javascript" src="jquery-1.8.0.js"></s 阅读全文
posted @ 2012-08-25 10:53 高捍得 阅读(387) 评论(0) 推荐(0) 编辑
摘要: window.showModalDialog("http://www.baidu.com/", null, "dialogWidth:330px;dialogHeight:auto;status:no;help:no;resizable:yes;"); 阅读全文
posted @ 2012-07-30 21:02 高捍得 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 模仿块级作用域 Javascript没有块级作用域的概念,意味着在块级语句中定义的变量,实际上是在包含函数中而非语句中创建的,看下面例子: function a() { for (var i = 0; i < 2; i++) { alert(i);// 0,1 } alert(i); //2 ... 阅读全文
posted @ 2012-06-08 14:44 高捍得 阅读(541) 评论(0) 推荐(0) 编辑
摘要: 下面创建一个经典 的 阶乘的递归函数: arguments.callee() 是一个指向正在执行的函数的指针。 function factorial(num) { if (num <= 1) { return num; } else { ... 阅读全文
posted @ 2012-06-08 13:02 高捍得 阅读(3109) 评论(0) 推荐(0) 编辑
摘要: 代码如下: <!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head> <title></title> <style type="text/css"> img { position: absolute; left: 50px; ... 阅读全文
posted @ 2012-06-08 09:27 高捍得 阅读(337) 评论(0) 推荐(0) 编辑
摘要: <script type="text/ecmascript" language="ecmascript"> var targetWeb; function runCode() { // 获取当前 var clientContext = new SP.ClientContext.get_current(); //SP.ClientContext(‘url’)... 阅读全文
posted @ 2012-06-05 17:36 高捍得 阅读(555) 评论(0) 推荐(0) 编辑
摘要: ECMAScript 中描述了原型链的概念,并将原型链作为实现继承的主要方法. 其基本思想就是 利用原型让一个引用类型 继承另一个引用类型的属性和方法. 实现原型链有一种基本模式,大致如下: function SuperType() { //定义父类 this.property = true; } SuperType.prototype.G... 阅读全文
posted @ 2012-06-05 10:01 高捍得 阅读(577) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 17 下一页