上一页 1 ··· 55 56 57 58 59 60 61 62 63 ··· 66 下一页

2016年9月26日

java2实用教程102小程序(分数计算和流水线计算

摘要: import java.util.Scanner; public class test{ public static void main(String args[]){ Rational a=new Rational(4,5); Rational b=new Rational(3,2); Rational c=a.chu(b); ... 阅读全文

posted @ 2016-09-26 21:12 Kooing 阅读(309) 评论(0) 推荐(0) 编辑

2016年9月22日

java对象初级知识

摘要: this属于类 方法中没有自己的this指针(本来以为js方法中有,其实并没有里,那是被new出来的function 在声明的时候可以赋初值: int a =12 但不能 int a ; a=12; 发现类似c++的方式,如果A类需要B类对象做数据成员(关联) A a = new A( new B( 阅读全文

posted @ 2016-09-22 23:36 Kooing 阅读(117) 评论(0) 推荐(0) 编辑

2016年9月21日

java第一天的疑问

摘要: 1字节 的 byte 2字节 的 char 精度 byte<short<char<int<long<float<double 随便打个整数默认为int 随便打个小数默认为double 低精度可以随便转高精度 char a='b'; int b=a 高精度变量赋值给低精度时候必须使用类型转换 输入时的 阅读全文

posted @ 2016-09-21 23:56 Kooing 阅读(123) 评论(0) 推荐(0) 编辑

2016年9月19日

时间

摘要: DOM0级 每个元素(包括window和document)都有自己的时间处理程序属性,将这种属性的值设置为一个函数,就可以指定事件处理程序 后面可以用 a.onclick=null DOM2增加了两个方法, addEventListener(a,b,c) 和 removeEvenLisener(a, 阅读全文

posted @ 2016-09-19 22:31 Kooing 阅读(115) 评论(0) 推荐(0) 编辑

2016年9月18日

范围

摘要: 创建 createRang() 给一段HTML 有两个定义范围的方法, selectNode 和 selectNodeContents 前面的范围包括了div,后面的就不能 定义下来后,本身的5大属性也尘埃落定 Range {} collapsed: false commonAncestorCont 阅读全文

posted @ 2016-09-18 23:05 Kooing 阅读(214) 评论(0) 推荐(0) 编辑

js遍历

摘要: NodeIterator 比较简单的迭代器 创建 document.createNodeIterator(root, whatToShow, filter , false ) root根节点 whatToShow表示要访问哪些结点代码,通常是NodeFilter.SHOW_ELEMENT filte 阅读全文

posted @ 2016-09-18 21:10 Kooing 阅读(380) 评论(0) 推荐(0) 编辑

偏移量

摘要: offsetHeight:算边框高度 offsetWidth:算边框宽度 offsetLeft: 到边框的长度 offsetTop:到边框的高 clientHeight:不算边框的高 clientWidth:不算边框的宽 后面有些实现不了 阅读全文

posted @ 2016-09-18 17:21 Kooing 阅读(323) 评论(0) 推荐(0) 编辑

样式

摘要: style对象的样式都有一个style属性 可有通过style来读写 DOM2级还定义了一些属性和方法 cssText:能读写css代码,和上面那个有点像 length:返回有几个 getPropertyValue(a):返回a属性的值 在遇到重叠元素的时候 上面的代码并不能显示 DOM2级增强了这 阅读全文

posted @ 2016-09-18 16:17 Kooing 阅读(133) 评论(0) 推荐(0) 编辑

2016年9月17日

检查DOM能力的函数

摘要: var a=document.implementation.hasFeature("Core","2.0"); var b=document.implementation.hasFeature("Core","3.0"); var c=document.implementation.hasFeature("HTML","2.... 阅读全文

posted @ 2016-09-17 23:21 Kooing 阅读(142) 评论(0) 推荐(0) 编辑

scrollIntoView()

摘要: scrollIntoView()看不到时候可以看到 scrollByLines()行 scrollByPages()页 scrollIntoViewIfNeeded()看不到的时候滚动到看到 阅读全文

posted @ 2016-09-17 22:29 Kooing 阅读(152) 评论(0) 推荐(0) 编辑

上一页 1 ··· 55 56 57 58 59 60 61 62 63 ··· 66 下一页

导航