File tree Expand file tree Collapse file tree 2 files changed +2
-28
lines changed Expand file tree Collapse file tree 2 files changed +2
-28
lines changed Original file line number Diff line number Diff line change @@ -72,20 +72,7 @@ test(200);
72
72
73
73
### 인터페이스 등록
74
74
75
- 1 . [ FlexHybridApp-Script] ( https://github.com/Kyun-J/FlexHybridApp-Scripts ) 적용시
76
-
77
- ``` js
78
- // in js
79
- $flex .web .funcName = async (req ) => {
80
- return await new Promise ((resolve ) => {
81
- setTimeout (() => resolve (` received from web - ${ req} ` ), 100 );
82
- });
83
- };
84
- ```
85
-
86
- 2 . 미적용시
87
-
88
- ` window.onFlexLoad ` 함수를 통해 \$ flex 객체의 로드를 확인한 후 인터페이스를 등록하여햐 합니다.
75
+ \$ flex 객체가 로드 된 후 (` window.onFlexLoad ` 함수로 \$ flex 로드 시점 확인 가능) 인터페이스를 등록하여햐 합니다.
89
76
90
77
``` js
91
78
// in js
Original file line number Diff line number Diff line change @@ -74,20 +74,7 @@ test(200);
74
74
75
75
### Interface registration
76
76
77
- 1 . When apply [ FlexHybridApp-Script] ( https://github.com/Kyun-J/FlexHybridApp-Scripts )
78
-
79
- ``` js
80
- // in js
81
- $flex .web .funcName = async (req ) => {
82
- return await new Promise ((resolve ) => {
83
- setTimeout (() => resolve (` received from web - ${ req} ` ), 100 );
84
- });
85
- };
86
- ```
87
-
88
- 2 . Not apply
89
-
90
- After checking the load of the \$ flex object through the ` window.onFlexLoad ` function, register the interface.
77
+ After the \$ flex object is loaded (the ` window.onFlexLoad ` function can be checked on the \$ flex Load time), register the interface.
91
78
92
79
``` js
93
80
// in js
You can’t perform that action at this time.
0 commit comments