Skip to content

Commit fdb7fdc

Browse files
committed
修改说明
1 parent 6778168 commit fdb7fdc

5 files changed

Lines changed: 32 additions & 4 deletions

File tree

‎collecttion/collection.md‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,32 @@
11
# 常见js函数收集
22

3+
#### js获取url中的参数
4+
5+
#### 判断两个对象是否相等
6+
```
7+
function isObjectValueEqual(a, b) {
8+
if(typeof a == 'number' && typeof b == 'number'){
9+
return a == b
10+
}
11+
var aProps = Object.getOwnPropertyNames(a);
12+
var bProps = Object.getOwnPropertyNames(b);
13+
14+
if (aProps.length != bProps.length) {
15+
return false;
16+
}
17+
18+
for (var i = 0; i < aProps.length; i++) {
19+
var propName = aProps[i];
20+
if(Object.prototype.toString(a[propName]) == '[Object Object]'||Object.prototype.toString(b[propName]) == '[Object Object]'){
21+
isObjectValueEqual(a[propName],b[propName])
22+
}
23+
if (a[propName] !== b[propName]) {
24+
return false;
25+
}
26+
}
27+
return true;
28+
}
29+
```
330
#### 获取一个DIV的绝对坐标的功能函数,即使是非绝对定位,一样能获取到
431
```
532
function getElCoordinate(dom) {

‎collecttion/website.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
#### 收集学习的网址,防止忘记
1+
# 收集常用的网址
2+
#### webpack[中文站](https://doc.webpack-china.org/)

‎jsplumb/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# jsPlumb流程图插件
22
<!-- 说明 -->
33
### 说明
4-
jquery插件皆可用于react,使用方法:[react中使用jquery插件](https://github.com/liubin915249126/react-study/tree/master/jquery%20in%20react)
4+
jquery插件皆可用于react,使用方法:[react中使用jquery插件](https://github.com/liubin915249126/react-study/blob/master/jquery-in-react.md)
55

66
### 效果图
77
![效果图](https://github.com/liubin915249126/javascript/blob/master/jsplumb/image/index.png)

‎lencharts/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# jquery插件
22
<!-- 说明 -->
33
### 说明
4-
jquery插件皆可用于react,使用方法:[react中使用jquery插件](https://github.com/liubin915249126/react-study/tree/master/jquery%20in%20react)
4+
jquery插件皆可用于react,使用方法:[react中使用jquery插件](https://github.com/liubin915249126/react-study/blob/master/jquery-in-react.md)
55
### 效果图
66
![效果图](https://github.com/liubin915249126/javascript/blob/master/lencharts/image/index.png)
77
#### 使用方法:

‎spacetree/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## spacetree组织架构图
22
<!-- 说明 -->
33
### 说明
4-
jquery插件皆可用于react,使用方法:[react中使用jquery插件](https://github.com/liubin915249126/react-study/tree/master/jquery%20in%20react)
4+
jquery插件皆可用于react,使用方法:[react中使用jquery插件](https://github.com/liubin915249126/react-study/blob/master/jquery-in-react.md)
55

66
#### 效果图
77
![效果图](https://github.com/liubin915249126/javascript/blob/master/spacetree/image/index2.png)

0 commit comments

Comments
 (0)