09 2021 档案
摘要:(1) clientX和clientY clientX: 鼠标点击处到浏览器窗口的横距离 clientY: 鼠标点击处到浏览器窗口的纵距离 (2) offsetLeft和offsetTop offsetLeft,offsetTop:相对于最近的祖先定位元素。也就是鼠标点击的位置到相对元素边框的距离。
阅读全文
摘要:代码说明: html部分: <html> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8"/> <meta http-equiv="X-UA-Compatible" content="IE=edge"/
阅读全文
摘要:第一种:Arrays.asList(strArray) 通过 Arrays.asList(strArray) 方式,将数组转换List后,不能对List增删,只能查改,否则抛异常。 关键代码:List list = Arrays.asList(strArray); private void test
阅读全文