Skip to content

Commit d3a9723

Browse files
committed
添加proxyFn的演示
1 parent 3e91009 commit d3a9723

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ nodePPT - 让你爱上做分享!
22
=============
33
## 为什么选择nodePPT
44
* 基于GFM的markdown语法编写
5-
* 支持[html混排](#mixed-code)在复杂的demo也可以做
5+
* 支持[html混排](#mixed-code)再复杂的demo也可以做
66
* [导出网页](#export-html)或者[pdf](#export-pdf)更容易分享
77
* 支持[18种转场动画](#transition),可以设置单页动画
88
* 支持单页背景图片

ppts/demo.md

+22-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ files: /js/demo.js,/css/demo.css
1919
## 为什么选择nodePPT
2020
----
2121
* 基于GFM的markdown语法编写 {:&.moveIn}
22-
* 支持html混排,在复杂的demo也可以做
22+
* 支持html混排,再复杂的demo也可以做
2323
* 导出网页或者pdf更容易分享
2424
* 支持18种转场动画,可以设置单页动画
2525
* 支持单页背景图片
@@ -396,6 +396,27 @@ markdown语法如下:
396396
<p id="incallback"></p>
397397
<p id="outcallback"></p>
398398

399+
[slide]
400+
## 远程执行函数
401+
----
402+
在多屏和远程模式中,可以使用`proxyFn`来远程执行函数。
403+
404+
```html
405+
<script>
406+
function globalFunc(){
407+
}
408+
</script>
409+
<button onclick="Slide.proxyFn('globalFunc')">远程执行函数</button>
410+
```
411+
412+
<button onclick="Slide.proxyFn('globalFunc','args')">测试远程执行函数</button>
413+
<a href="?_multiscreen=1#33">在多屏中测试远程执行</a>
414+
<script>
415+
function globalFunc(a){
416+
alert('proxyFn success: '+a);
417+
}
418+
</script>
419+
399420

400421
[slide]
401422

0 commit comments

Comments
 (0)