Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
qiu-deqing committed Jul 2, 2014
1 parent f2296ad commit bf10e8a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,6 @@ function parseUrl(url) {
- **完成函数getScrollOffset返回窗口滚动条偏移量**

<pre>

```
/**
* 获取指定window中滚动条的偏移量,如未指定则获取当前window
* 滚动条偏移量
Expand Down Expand Up @@ -409,8 +407,6 @@ function getScrollOffset(w) {
y: d.body.scrollTop
};
}
```

</pre>


Expand Down Expand Up @@ -465,6 +461,7 @@ function richText(text) {


- **以下函数的作用是?空白区域应该填写什么**

<pre>
// define
(function (window) {
Expand All @@ -488,10 +485,13 @@ function richText(text) {
console.log(t.format('http://www.alibaba.com', 'Alibaba', 'Welcome'));
})();
</pre>

define部分定义一个简单的模板类,使用{}作为转义标记,中间的数字表示替换目标,format实参用来替换模板内标记
横线处填:
1: ``Array.prototype.slice.call(arguments, 0)``
2: ``/\{\s*(\d+)\s*\}/g``

1. ``Array.prototype.slice.call(arguments, 0)``
2. ``/\{\s*(\d+)\s*\}/g``


-

Expand Down

0 comments on commit bf10e8a

Please sign in to comment.