摘要:
一、javaScript组成 1、ECMAScript:解释器、翻译 几乎没有兼容性问题 2、DOM:Document Object Model 操作HTML的能力 document 有一些兼容性问题 3、BOM:Browser Object Model 浏览器 window 完全不兼容 (各组成部 阅读全文
摘要:
一、函数传参 1、函数传参:参数就是占位符 函数里定不下来的东西 a. var a1=function(){ alert(123); }; function a(f){ // 相当于 f=a1 f(); }; a(a1); b. function skip(skipPath){ //换肤 var o 阅读全文
摘要:
一、html/css 1. 什么是盒子模型? padding+border+width/height 2. float 浮动 (1)浮动的特性 半脱离文档流 行内变成块 共处一行 能设置宽高 同级元素有浮动,必须全部都浮动 父级宽度不够,子集掉下来 文本环绕 顶对齐 (2)清除浮动? clear:b 阅读全文
摘要:
一、Date对象 1. 获取 oDate.getFullYear() 获取年份 oDate.getMonth()+1 获取月份( 0-11) >1-12 oDate.getDate() 获取日 1-31 oDate.getHours() 获取小时 oDate.getMinutes() 获取分 oDa 阅读全文