File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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) {
Original file line number Diff line number Diff line change 1- #### 收集学习的网址,防止忘记
1+ # 收集常用的网址
2+ #### webpack[ 中文站] ( https://doc.webpack-china.org/ )
Original file line number Diff line number Diff line change 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 )
Original file line number Diff line number Diff line change 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#### 使用方法:
Original file line number Diff line number Diff line change 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 )
You can’t perform that action at this time.
0 commit comments