<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[ABing]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/AAABingBing</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; AAABingBing]]></copyright><item><title><![CDATA[【JavaScript】查询字符串参数]]></title><link>https://blog.youkuaiyun.com/AAABingBing/article/details/104332067</link><guid>https://blog.youkuaiyun.com/AAABingBing/article/details/104332067</guid><author>AAABingBing</author><pubDate>Sat, 15 Feb 2020 18:19:48 +0800</pubDate><description><![CDATA[function getQueryStringArgs() {
  // 取得查询字符串并删除开头的 '?'
  var qs = location.search.length &gt; 0 ? location.search.substring(1) : '',

    // 创建保存数据的对象
    args = {},

    // 取得每一项
    items = qs.lengt...]]></description><category></category></item><item><title><![CDATA[【JavaScript】面向对象：hasOwnProperty()方法与in操作符]]></title><link>https://blog.youkuaiyun.com/AAABingBing/article/details/104221244</link><guid>https://blog.youkuaiyun.com/AAABingBing/article/details/104221244</guid><author>AAABingBing</author><pubDate>Sat, 08 Feb 2020 12:29:17 +0800</pubDate><description><![CDATA[hasOwnProperty()方法

使用 hasOwnProperty()方法（是从 Object 继承来的）可以检测一个属性是存在于实例中，还是存在于原型中。只在给定属性存在于对象实例中时，才会返回 true。

function Person(){ 
} 
Person.prototype.name = "Nicholas"; 
Person.prototype.age = 29; 
Pe...]]></description><category></category></item><item><title><![CDATA[【JavaScript】生成固定区间随机数]]></title><link>https://blog.youkuaiyun.com/AAABingBing/article/details/104186063</link><guid>https://blog.youkuaiyun.com/AAABingBing/article/details/104186063</guid><author>AAABingBing</author><pubDate>Wed, 05 Feb 2020 18:11:27 +0800</pubDate><description><![CDATA[Math.random();  //0.0 ~ 1.0 之间的一个伪随机数。【包含0不包含1）
//获取[lowerValue,upperValue]之间的随机数
function selectFrom(lowerValue, upperValue) {
  return parseInt(Math.random() * (upperValue - lowerValue + 1) + lowerV...]]></description><category></category></item><item><title><![CDATA[【JavaScript】 URI 编码与解码]]></title><link>https://blog.youkuaiyun.com/AAABingBing/article/details/104159914</link><guid>https://blog.youkuaiyun.com/AAABingBing/article/details/104159914</guid><author>AAABingBing</author><pubDate>Mon, 03 Feb 2020 18:28:51 +0800</pubDate><description><![CDATA[encodeURI()和 encodeURIComponent()

encodeURI()和 encodeURIComponent()方法可以对 URI进行编码，以便发送给浏览器。有效的 URI 中不能包含某些字符，例如空格。而这两个 URI 编码方法就可以对 URI 进行编码，它们用特殊的 UTF-8 编码替换所有无效的字符，从而让浏览器能够接受和理解。

encodeURI()主要用于整个 ...]]></description><category></category></item><item><title><![CDATA[【JavaScript】ECMAScript 特殊的字符序列]]></title><link>https://blog.youkuaiyun.com/AAABingBing/article/details/104156807</link><guid>https://blog.youkuaiyun.com/AAABingBing/article/details/104156807</guid><author>AAABingBing</author><pubDate>Mon, 03 Feb 2020 15:03:08 +0800</pubDate><description><![CDATA[通过这些特殊的字符序列，可以使用最近一次匹配结果中的内容
var text = "cat, bat, sat, fat"; 
result = text.replace(/(.at)/g, "word ($1)"); 
console.log(result); //word (cat), word (bat), word (sat), word (fat) 


每个以"at"结尾的单词都被替换...]]></description><category></category></item><item><title><![CDATA[【JavaScript】字符串方法slice()、substr()、substring()]]></title><link>https://blog.youkuaiyun.com/AAABingBing/article/details/104156345</link><guid>https://blog.youkuaiyun.com/AAABingBing/article/details/104156345</guid><author>AAABingBing</author><pubDate>Mon, 03 Feb 2020 14:26:03 +0800</pubDate><description><![CDATA[slice()、substr()和 substring()这三个方法都会返回被操作字符串的一个子字符串，而且也都接受一或两个参数。第一个参数指定子字符串的开始位置，第二个参数（在指定的情况下）表示子字符串到哪里结束。具体来说，slice()和substring()的第二个参数指定的是子字符串最后一个字符后面的位置。而 substr()的第二个参数指定的则是返回的字符个数。如果没有给这些方法传递第二...]]></description><category></category></item><item><title><![CDATA[【JavaScript】Number类型格式化字符串方法toFixed()、toExponential()、toPrecision()]]></title><link>https://blog.youkuaiyun.com/AAABingBing/article/details/104146604</link><guid>https://blog.youkuaiyun.com/AAABingBing/article/details/104146604</guid><author>AAABingBing</author><pubDate>Sun, 02 Feb 2020 17:10:44 +0800</pubDate><description><![CDATA[toFixed()方法会按照指定的小数位返回数值的字符串表示
var num = 10; 
console.log(num.toFixed(2)); //"10.00" 
// 给 toFixed()方法传入了数值 2，显示2位小数

var num = 10.005; 
console.log(num.toFixed(2)); //"10.01" 
// 如果数值本身包含的小数位比指定的还多，那...]]></description><category></category></item><item><title><![CDATA[【JavaScript】数组sort()方法]]></title><link>https://blog.youkuaiyun.com/AAABingBing/article/details/104117095</link><guid>https://blog.youkuaiyun.com/AAABingBing/article/details/104117095</guid><author>AAABingBing</author><pubDate>Thu, 30 Jan 2020 18:10:26 +0800</pubDate><description><![CDATA[sort() 方法用于对数组的元素进行排序
在默认情况下，sort()方法按升序排列数组项——即最小的值位于最前面，最大的值排在最后面。为了实现排序，sort()方法会调用每个数组项的 toString()转型方法，然后比较得到的字符串，以确定如何排序。即使数组中的每一项都是数值，sort()方法比较的也是字符串
var values = [0, 1, 5, 10, 15]; 
values.so...]]></description><category></category></item><item><title><![CDATA[【JavaScript】JavaScript位操作符]]></title><link>https://blog.youkuaiyun.com/AAABingBing/article/details/103890367</link><guid>https://blog.youkuaiyun.com/AAABingBing/article/details/103890367</guid><author>AAABingBing</author><pubDate>Wed, 08 Jan 2020 14:58:41 +0800</pubDate><description><![CDATA[JavaScript位操作符

位操作符用于在最基本的层次上，即按内存中表示数值的位来操作数值。ECMAScript 中的所有数值都以 IEEE-754 64 位格式存储，但位操作符并不直接操作 64 位的值。而是先将 64 位的值转换成 32 位的整数，然后执行操作，最后再将结果转换回 64 位。对于开发人员来说，由于 64 位存储格式是透明的，因此整个过程就像是只存在 32 位的整数一样。
对...]]></description><category></category></item><item><title><![CDATA[【JavaScript】parseInt()与toString()]]></title><link>https://blog.youkuaiyun.com/AAABingBing/article/details/103857706</link><guid>https://blog.youkuaiyun.com/AAABingBing/article/details/103857706</guid><author>AAABingBing</author><pubDate>Mon, 06 Jan 2020 15:39:43 +0800</pubDate><description><![CDATA[parseInt() 函数

parseInt(string, radix)   将一个字符串 string 转换为 radix 进制的整数， radix 为介于2-36之间的数。

parseInt()一般用于数值转换，在转换字符串时，更多的是看其是否符合数值模式。它会忽略字符串前面的空格，直至找到第一个非空格字符。如果第一个字符不是数字字符或者负号，parseInt()就会返回 NaN；也就是...]]></description><category></category></item><item><title><![CDATA[HTML中的designMode 属性]]></title><link>https://blog.youkuaiyun.com/AAABingBing/article/details/103842528</link><guid>https://blog.youkuaiyun.com/AAABingBing/article/details/103842528</guid><author>AAABingBing</author><pubDate>Sun, 05 Jan 2020 14:19:36 +0800</pubDate><description><![CDATA[HTML DOM designMode
document.designMode属性设置或返回文档是否可编辑

document.designMode 控制整个文档是否可编辑。有效值为 “on” 和 “off” 。根据规范，该属性默认为 “off” 。Firefox 遵循此标准。早期版本的 Chrome 和 IE默认为 “inherit” 。从 Chrome 43 开始，默认值为 “off” ，并且...]]></description><category></category></item></channel></rss>