<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[xxhsym的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/xxhsym</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; xxhsym]]></copyright><item><title><![CDATA[blur focus]]></title><link>https://blog.youkuaiyun.com/xxhsym/article/details/106280730</link><guid>https://blog.youkuaiyun.com/xxhsym/article/details/106280730</guid><author>xxhsym</author><pubDate>Fri, 22 May 2020 21:06:37 +0800</pubDate><description><![CDATA[focus聚焦
blur失焦		
//placeholder是默认文本框内容
如果不用placeholder写默认内容
可以这样写：
&lt;!DOCTYPE html&gt;
&lt;html lang="en"&gt;
&lt;head&gt;
    &lt;meta charset="UTF-8"&gt;
    &lt;title&gt;Title&lt;/title&gt;
&lt;/head&gt;
&lt;script&gt;
window.onload=function(){
      ]]></description><category></category></item><item><title><![CDATA[filter some every map forEach的用法及应用]]></title><link>https://blog.youkuaiyun.com/xxhsym/article/details/105981817</link><guid>https://blog.youkuaiyun.com/xxhsym/article/details/105981817</guid><author>xxhsym</author><pubDate>Thu, 07 May 2020 21:25:56 +0800</pubDate><description><![CDATA[every
//数组中的元素全部满足指定条件返回true
//运行结果为false
var checknum = [15,3,2,6,7,1,9,10];
var checkresult = checknum.every(function(item,index,array){
return item &gt; 1 ;
});
alert(checkresult);
some
//数组中的元素部分满...]]></description><category></category></item><item><title><![CDATA[javaScript正则表达式]]></title><link>https://blog.youkuaiyun.com/xxhsym/article/details/105248030</link><guid>https://blog.youkuaiyun.com/xxhsym/article/details/105248030</guid><author>xxhsym</author><pubDate>Wed, 01 Apr 2020 15:57:39 +0800</pubDate><description><![CDATA[正则表达式
1.语法：var 变量=new RegExp(“正则表达式”,”匹配模式”)
Var reg=new RegExp(“a”,i);//i是不区分大小写
Var str=”abcd”;
正则表达式的方法test（）
如果符合返回true，else返回false
Console.log(reg.test(str));//判断str中是否有a;且忽略大小写
Var reg=/a{3}/;--...]]></description><category></category></item><item><title><![CDATA[JS通过定时器移动div]]></title><link>https://blog.youkuaiyun.com/xxhsym/article/details/104717035</link><guid>https://blog.youkuaiyun.com/xxhsym/article/details/104717035</guid><author>xxhsym</author><pubDate>Sat, 07 Mar 2020 16:36:03 +0800</pubDate><description><![CDATA[&lt;!DOCTYPE html&gt;
&lt;html&gt;
  &lt;head&gt;
    &lt;title&gt;MyHtml.html&lt;/title&gt;
	
    &lt;meta name="keywords" content="keyword1,keyword2,keyword3"&gt;
    &lt;meta name="description" con...]]></description><category></category></item><item><title><![CDATA[JS 定时器]]></title><link>https://blog.youkuaiyun.com/xxhsym/article/details/104697674</link><guid>https://blog.youkuaiyun.com/xxhsym/article/details/104697674</guid><author>xxhsym</author><pubDate>Fri, 06 Mar 2020 15:54:25 +0800</pubDate><description><![CDATA[var num=1;
var timer=setInterval(function(){
count.innerHTML=num++;
if(num==11){
//关闭定时器
clearInterval(timer);
}
}1000)；
//setInterval()
//定时器
可以将一个函数，每个一段时间调用一次
参数
回调函数，改函数会每个一段时间执行一次
每次调用的时间单位是毫秒·

...]]></description><category></category></item><item><title><![CDATA[JS Navigator Location history]]></title><link>https://blog.youkuaiyun.com/xxhsym/article/details/104690251</link><guid>https://blog.youkuaiyun.com/xxhsym/article/details/104690251</guid><author>xxhsym</author><pubDate>Fri, 06 Mar 2020 14:22:05 +0800</pubDate><description><![CDATA[BOM
浏览器对象模型
BOM可以使我们通过js来操作浏览器
在BOM中为我们提供了一组对象，用来完成浏览器的操作
BOM对象
window
代表的是整个浏览器的窗口，同时window也是网页中的全局对象
Navigator
代表的当前浏览器的信息，通过该对象可以来识别不同的浏览器
Location
代表当前浏览器的地址栏信息，通过Location可以获取地址信息，或者操作浏览器跳转页面
Hist...]]></description><category></category></item><item><title><![CDATA[JS键盘移动div]]></title><link>https://blog.youkuaiyun.com/xxhsym/article/details/104685330</link><guid>https://blog.youkuaiyun.com/xxhsym/article/details/104685330</guid><author>xxhsym</author><pubDate>Thu, 05 Mar 2020 21:58:40 +0800</pubDate><description><![CDATA[div块跟随上下左右键移动

&lt;style type="text/css"&gt;
#div{
width:150px;
height:150px;
background-color:yellowgreen;
position:absolute;
}
&lt;/style&gt;

&lt;script type="text/javascript"&gt;
window.onload=fun...]]></description><category></category></item><item><title><![CDATA[JS键盘事件]]></title><link>https://blog.youkuaiyun.com/xxhsym/article/details/104673280</link><guid>https://blog.youkuaiyun.com/xxhsym/article/details/104673280</guid><author>xxhsym</author><pubDate>Thu, 05 Mar 2020 13:39:28 +0800</pubDate><description><![CDATA[&lt;script type="text/javascript"&gt;
window.onload=function(){
/*
键盘事件
onkeydown---按键按下,当按着某个键不松手 则事件会一直触发，连续触发的一次跟第二次间隔长一点，
其他会很快，这种设计是为了误操作的发生
onkeyup---按键松开，不会连续触发
键盘事件一般绑定可以获取焦点的事件
*/
var input=...]]></description><category></category></item><item><title><![CDATA[js滚轮事件]]></title><link>https://blog.youkuaiyun.com/xxhsym/article/details/104659302</link><guid>https://blog.youkuaiyun.com/xxhsym/article/details/104659302</guid><author>xxhsym</author><pubDate>Wed, 04 Mar 2020 18:28:42 +0800</pubDate><description><![CDATA[&lt;style type="text/css"&gt;
#box1{
width:150px;
height:150px;
background-color:yellowGreen;
}
&lt;/style&gt;


&lt;script type="text/javascript"&gt;
window.onload=function(){
var box1=document.getE...]]></description><category></category></item><item><title><![CDATA[JS增删改（2）]]></title><link>https://blog.youkuaiyun.com/xxhsym/article/details/104634710</link><guid>https://blog.youkuaiyun.com/xxhsym/article/details/104634710</guid><author>xxhsym</author><pubDate>Tue, 03 Mar 2020 16:05:31 +0800</pubDate><description><![CDATA[&lt;script&gt;
  window.onload=function(){
  var allA=document.getElementsByTagName("a");
  var th=document.getElementsByTagName("th");
  for(var i=0;i&lt;allA.length;i++)
  {
  allA[i].onclick=funct...]]></description><category></category></item><item><title><![CDATA[JS增删改]]></title><link>https://blog.youkuaiyun.com/xxhsym/article/details/104634422</link><guid>https://blog.youkuaiyun.com/xxhsym/article/details/104634422</guid><author>xxhsym</author><pubDate>Tue, 03 Mar 2020 16:01:17 +0800</pubDate><description><![CDATA[&lt;script&gt;
  window.onload=function(){
  var allA=document.getElementsByTagName("a");
  var th=document.getElementsByTagName("th");
  for(var i=0;i&lt;allA.length;i++)
  {
  allA[i].onclick=funct...]]></description><category></category></item><item><title><![CDATA[JS事件的绑定，回调函数]]></title><link>https://blog.youkuaiyun.com/xxhsym/article/details/104620214</link><guid>https://blog.youkuaiyun.com/xxhsym/article/details/104620214</guid><author>xxhsym</author><pubDate>Mon, 02 Mar 2020 21:42:33 +0800</pubDate><description><![CDATA[&lt;script type="text/javascript"&gt;
window.onload=function(){
var btn=document.getElementById("btn");
btn.onclick=function(){
/*addEventListenner()
-通过这个方法可以为事件绑定响应函数
-参数
1.事件的字符不要on  
2.回调函数，当事件触发...]]></description><category></category></item><item><title><![CDATA[js事件委派]]></title><link>https://blog.youkuaiyun.com/xxhsym/article/details/104595494</link><guid>https://blog.youkuaiyun.com/xxhsym/article/details/104595494</guid><author>xxhsym</author><pubDate>Sun, 01 Mar 2020 17:05:37 +0800</pubDate><description><![CDATA[事件委派：
指将事件统一绑定给元素的共同的祖先元素，
这样当后代元素上的事件触发时，会一直冒泡到祖先元素。
事件的委派是利用了冒泡，通过委派可以减少事件绑定的次数，提高程序的性能。

&lt;script type="text/javascript"&gt;
window.onload=function(){
var ul=document.getElementById("ul");
var bt...]]></description><category></category></item><item><title><![CDATA[JS事件对象]]></title><link>https://blog.youkuaiyun.com/xxhsym/article/details/104578452</link><guid>https://blog.youkuaiyun.com/xxhsym/article/details/104578452</guid><author>xxhsym</author><pubDate>Sat, 29 Feb 2020 17:50:57 +0800</pubDate><description><![CDATA[&lt;style&gt;
   #one{
   width:300px;
   height:200px;
   border:2px solid;
   border-color:#CC9933;
   margin:0 auto;
   }
   #two{
   width:300px;
   height:50px;
   border:2px solid;
   margin:0 ...]]></description><category></category></item><item><title><![CDATA[js滚动条]]></title><link>https://blog.youkuaiyun.com/xxhsym/article/details/104561022</link><guid>https://blog.youkuaiyun.com/xxhsym/article/details/104561022</guid><author>xxhsym</author><pubDate>Fri, 28 Feb 2020 21:14:52 +0800</pubDate><description><![CDATA[scrollLeft-------获取水平滚动条的距离
scrollTop-------获取垂直滚动条的距离
clientHeight--------当前滚动可见区域(这个值是固定的)
scrollHeight---------整个滚动条滚动区域的高度
element.scrollHeight-element.scrollTop=element.clientHeight--------判断滚动条是...]]></description><category></category></item><item><title><![CDATA[JS获取元素的样式]]></title><link>https://blog.youkuaiyun.com/xxhsym/article/details/104535556</link><guid>https://blog.youkuaiyun.com/xxhsym/article/details/104535556</guid><author>xxhsym</author><pubDate>Thu, 27 Feb 2020 17:12:36 +0800</pubDate><description><![CDATA[获取内联样式里面的元素：元素.style.width
获取当前样式里面的元素：元素.currentStyle.width--------只有IE浏览器支持气他不支持
获取当前样式里面的元素：getComputedStyle(元素,null).width-------需要传递两个参数第一个为要获取样式的元素 第二个为伪元素，一般为null。
background-color要写成background...]]></description><category></category></item><item><title><![CDATA[JS 拖拽]]></title><link>https://blog.youkuaiyun.com/xxhsym/article/details/104274134</link><guid>https://blog.youkuaiyun.com/xxhsym/article/details/104274134</guid><author>xxhsym</author><pubDate>Wed, 12 Feb 2020 17:45:30 +0800</pubDate><description><![CDATA[拖拽的流程：
当鼠标在被拖拽元素上按下时，开始拖拽onmousedown
当鼠标移动时被拖拽元素跟随鼠标移动onmousemove
当鼠标松开时，被拖拽元素固定在当前位置onmouseup
&lt;style type="text/css"&gt;
#box1{
width:100px;
height:100px;
background-color:red;
/*拖拽时必须绝对位置*/
posit...]]></description><category></category></item><item><title><![CDATA[js图片切换]]></title><link>https://blog.youkuaiyun.com/xxhsym/article/details/104241584</link><guid>https://blog.youkuaiyun.com/xxhsym/article/details/104241584</guid><author>xxhsym</author><pubDate>Sun, 09 Feb 2020 22:10:46 +0800</pubDate><description><![CDATA[&lt;script style="text/javaScript"&gt;
   window.onload=function(){
   var prev=document.getElementById("prev");
    var next=document.getElementById("next");
    var img=document.getElementById("img"...]]></description><category></category></item><item><title><![CDATA[js]]></title><link>https://blog.youkuaiyun.com/xxhsym/article/details/104210218</link><guid>https://blog.youkuaiyun.com/xxhsym/article/details/104210218</guid><author>xxhsym</author><pubDate>Fri, 07 Feb 2020 16:34:30 +0800</pubDate><description><![CDATA[btn=document.getElementById(“btn”)括号里面是ID名
console.log(“btn.innerHTML”);输出btn中的内容；
btn.oclick=function(){alert(“点我”)；}；点击输出内容
function（）为响应函数 当事件被触发的时候被执行；
window.οnlοad=function（）{
}
事件会在整个页面加载完成后再触发...]]></description><category></category></item><item><title><![CDATA[定点数与浮点数]]></title><link>https://blog.youkuaiyun.com/xxhsym/article/details/103115416</link><guid>https://blog.youkuaiyun.com/xxhsym/article/details/103115416</guid><author>xxhsym</author><pubDate>Sun, 17 Nov 2019 23:51:29 +0800</pubDate><description><![CDATA[浮点表示：
尾数小于1  可正可负；
阶码必须为整数  可正可负
n=11.0101=0.1101012^10
=1101.012^-10;
0.11012^110(其中110为阶码，数有正负号的话，正负号就叫阶符，小数点为数符）
例1：
设机器字长为24位，要表示±3万的十进制数，试问在保证数的最大精度的前提下，除阶符数符各取一位外阶码，尾数各取几位？
解：2^14=16384
2^15=327...]]></description><category></category></item></channel></rss>