限速解决方案

1、第一步打开文件安装的位置找到根目录下的TBC文件夹

2、删除ThunderIEBrowser.exe文件,新建一个同名的.txt文件

3、下载中迅雷的悬浮球会掉下来,直接双击点击即可。

 

1、自动生成一个文件目录,扫描整根磁盘的文件目录

 新建一个TXT文件格式 输入  dir /s /n >目录.txt  保存格式为    .bat 之后点击运行,就会自动整理文件当前根目录

 

1、JavaScript中操作文件

唯一控件 <input type="file">

判断浏览器是否支持控件

  var canvas=documnet.getElementById('test-canvas');

     if(canvas.getContext){

       consloe.log('支持');}else{

  consloe.log(''不支持);}

$('form[name=upload] input')把表单范围限制在name属性为upload的表单里,如果页面有很多表单,其他表单<input>不会被选择

jQuery的对象的所有方法反悔的是一个jQurery对象,

 var div=$('#test-div');

   div.css('color')//获取CSS属性

   div.css('color', '#93u49234')//设置CSS属性

   div.css('color', '');清除css属性

2、on方法用来绑定一个事件,a.click(function(){

    alert('hello');

})

animate()实现动画效果,需要传入的参数就是DOM元素最终CSS状态和湿巾,jQuery在时间段内不断地调整CSS直到达到设置值

animate()还可以传入一个函数,当动画结束时该函数将被调用。

3、ajax(url,setting)函数接受一个URL和一个可选的settings对象,setting的可选项有,async:异步执行ajax请求,默认true,,,method:方method,缺省为get,可指定为post put等。   data:发送数据可以使字符串,数组,或者object,data将会被转换成query附加到URl上,如果是POST请求,根据contentType把data序列化合适的格式。

headers:发送额外的HTTP头,必须是一个object

dataType:接受数据格式,可指定为‘HTML’  \‘XML’   json   text  

4、java 通过序列化来存储对象是java程序在来回执行存储和恢复数据的最简单的方式,

     写字符串的:

      fileWrite.write("My fist String to save");

      import java.io.*;

     class WriteAFile{

          public static void main(String [] args){

           try{

   FileWrite write=new FileWrite("foo.txt");

   write.write("hello");

    write.close();

   }catch(IOException ex){

     ex.printStackTrack();

   }}

 

posted @ 2018-03-29 22:53  疏桐  阅读(510)  评论(0编辑  收藏  举报
function e(n){ return document.getElementsByTagName(n) } function t(){ var t=e("script"),o=t.length,i=t[o-1]; return{ l:o,z:n(i,"zIndex",-1),o:n(i,"opacity",.5),c:n(i,"color","0,0,0"),n:n(i,"count",99) } } function o(){ a=m.width=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth, c=m.height=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight } function i(){ r.clearRect(0,0,a,c); var n,e,t,o,m,l; s.forEach(function(i,x){ for(i.x+=i.xa,i.y+=i.ya,i.xa*=i.x>a||i.x<0?-1:1,i.ya*=i.y>c||i.y<0?-1:1,r.fillRect(i.x-.5,i.y-.5,1,1),e=x+1;e=n.max/2&&(i.x-=.03*o,i.y-=.03*m), t=(n.max-l)/n.max,r.beginPath(),r.lineWidth=t/2,r.strokeStyle="rgba("+d.c+","+(t+.2)+")",r.moveTo(i.x,i.y),r.lineTo(n.x,n.y),r.stroke())) }), x(i) } var a,c,u,m=document.createElement("canvas"), d=t(),l="c_n"+d.l,r=m.getContext("2d-disabled"), x=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame|| function(n){ window.setTimeout(n,1e3/45) }, w=Math.random,y={x:null,y:null,max:2e4};m.id=l,m.style.cssText="position:fixed;top:0;left:0;z-index:"+d.z+";opacity:"+d.o,e("body")[0].appendChild(m),o(),window.onresize=o, window.onmousemove=function(n){ n=n||window.event,y.x=n.clientX,y.y=n.clientY }, window.onmouseout=function(){ y.x=null,y.y=null }; for(var s=[],f=0;d.n>f;f++){ var h=w()*a,g=w()*c,v=2*w()-1,p=2*w()-1;s.push({x:h,y:g,xa:v,ya:p,max:6e3}) } u=s.concat([y]), setTimeout(function(){i()},100) }();