摘要: (一)Javascript基础:1、功能: (1)简单的数据验证; (2)与浏览器窗口及内容交互; (3)处理复杂的计算与交互; (4)拥有了闭包、匿名函数、元编程等特性;2、组成 (1)ECMAScript:提供核心语言功能; (2)DOM:提供访问和操作网页内容的方法和接口; (3)BOM:提供与浏览器交互的方法和接口;(二)<script>元素:1、选项: (1)async:可选,表示立即下载脚本。只对外部脚本文件有效。 (2)defer:可选,表示脚本可以延迟到文档完全被解析和显示之后再执行,只对外部脚本文件有效。 (3)src:可选,表示要执行的外部脚本文件; ... 阅读全文
posted @ 2012-11-20 21:48 china_victory 阅读(164) 评论(0) 推荐(0) 编辑
摘要: (一)SVG(Scalable Vector Graphics)使用:1、使用<svg width="200" height="200"></svg>2、画矩形<rect x="10" y="20" width="100" height="80" stroke="red" fill="#ccc" />3、画圆形<circle cx="120" cy="80" 阅读全文
posted @ 2012-11-20 20:18 china_victory 阅读(411) 评论(0) 推荐(0) 编辑
摘要: (一)模板1、模板的基本知识: (1)定义模板:1 template <class T>2 class Array {3 //......4 }; (2)实例: 1 template <class T> 2 class Array { 3 public : 4 T& operator[](int); 5 const T& operator[](int) const; 6 Array(int); 7 ~Array(); 8 int get_size() const {return size;} 9 private :10 T* a;... 阅读全文
posted @ 2012-11-20 11:01 china_victory 阅读(378) 评论(0) 推荐(0) 编辑