- 博客(7)
- 收藏
- 关注
原创 js对于加载跟多滚动条的位置相关
首先获取DIV的高度(宽度)var div = document.getElementById("chat_history");var divHeight = div.offsetHeight; //div高度var divWidth = div.offsetWidth; //宽度1. 滚动条置底 var _el = document.getElementById('chat_histor
2017-09-23 10:15:12
517
原创 js如何往数组Array(list)中添加元素
unshift:将参数添加到原数组开头,并返回数组的长度 pop:删除原数组最后一项,并返回删除元素的值;如果数组为空则返回undefined push:将参数添加到原数组末尾,并返回数组的长度 concat:返回一个新数组,是将参数添加到原数组中构成的 splice(start,deleteCount,val1,val2,…):从start位置开始删除deleteCount项,并从
2017-09-23 10:08:32
122988
2
原创 angularjs DIV滚动条置底
//DIV滚动条置底$scope.scrollWindow=function(){ var _el = document.getElementById('chat_history'); //_el.scrollTop = _el.scrollHeight; _el.scrollTop = _el.scrollHeight;};//----使用方法
2017-09-06 17:13:43
1373
原创 获取网页XML
PrintWriter out = null;BufferedReader in = null;String result = "";try {URL realUrl = new URL("http://f.apiplus.net/heb11x5.xml");// 打开和URL之间的连接URLConnection conn = realUrl.openConnection(
2017-08-11 18:10:33
3518
原创 将文件下载到本地以及删除本地文件
public static void main(String[] args) throws Exception {String urlPath= "url";String url = getVideo(urlPath);File file = new File(url);if(file.exists()){file.delete();}}public s
2017-08-11 16:51:09
1166
原创 framset刷新页面,互相传值,追加内容
1、framset刷新中间页面window.parent.orgcenter.location.href="action地址"; 2、framset重新加载其他页面window.parent.orgleft.location.reload(); 3、在其他页面的div后加内容 $("#"+commentId(orgcenter页面的id),window.parent
2017-06-30 18:01:51
730
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人