Skip to content

Commit 7a1a25a

Browse files
committed
调整
1 parent 657230c commit 7a1a25a

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

KMP.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
let KMP = (S,T) => {
22
let i = 0,j = 0;
33
let next= [T.length]
4+
console.log(next)
45
next[0] = -1
56
while( i < S.length && j < T.length){
67
if(j === -1 || S[i] === T[j]){
78
i++
89
j++
910
}else{
1011
j = next[j]
12+
console.log(j)
1113
}
1214
}
1315
if( j === T.length){

README.md

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -318,10 +318,10 @@ HTML **超文本标记语言**
318318
#### 拖拽元素
319319
页面设置了 `draggable = 'true'` 属性元素
320320

321-
+ `ondragstart` 拖拽开始时调用
322-
+ `ondragleave` **鼠标离开拖拽元素时**调用
323-
+ `ondragend` 拖拽结束时
324-
+ `ondrag` 整个拖拽过程都会调用
321+
+ `ondragstart` 拖拽开始时调用
322+
+ `ondragleave` **鼠标离开拖拽元素时**调用
323+
+ `ondragend` 拖拽结束时
324+
+ `ondrag` 整个拖拽过程都会调用
325325

326326

327327
```html
@@ -332,13 +332,13 @@ HTML **超文本标记语言**
332332
CSS
333333
#### background的常见背景属性
334334

335-
+ `background-color:#ff99ff`,设置元素的背景色
336-
+ `background-image:url(http://github.com/images/2.gif)`,图像设置成背景
337-
+ `background-repeat:no-repeat`,是否平铺
335+
+ `background-color:#ff99ff`,设置元素的背景色
336+
+ `background-image:url(http://github.com/images/2.gif)`,图像设置成背景
337+
+ `background-repeat:no-repeat`,是否平铺
338338
- `no-repeat` 不要平铺
339339
- `repeat-x` 横向平铺
340340
- `repeat-y` 纵向平铺
341-
+ `background-position`,背景定位
341+
+ `background-position`,背景定位
342342
....
343343

344344
#### ID选择器:规定用`#`来定义
@@ -569,5 +569,13 @@ apple@appledeMacBook-Air ~ %
569569

570570
```
571571

572+
### 杂七杂八的
572573

574+
+ 跨域通信的方式
575+
- JSONP
576+
- WebSocket
577+
- CORS
578+
- Hash
579+
- postMessage()方法
580+
573581

0 commit comments

Comments
 (0)