HTML5远程方法调用 Pmrpc
openkk
13年前
<div id="p_fullcontent" class="detail"> <p><strong>Pmrpc</strong> 是一个 HTML5 的 JavaScript 库,用来实现浏览器的远程方法调用。<br /> <img title="Pmrpc" border="0" alt="Pmrpc" src="https://simg.open-open.com/show/daf5736b5cdd7ee77d1d405711dcbbea.png" width="55" height="55" /></p> <p>示例代码:</p> <p></p> <pre class="brush:javascript; toolbar: true; auto-links: false;">// [window object B] - client // load pmrpc library <script type="text/javascript" src="pmrpc.js" /> // call the exposed procedure pmrpc.call( { destination : window.frames["iFrameA"], publicProcedureName : "HelloPMRPC", params : ["Hello World!"] } );</pre> <p><strong>项目主页:</strong><a href="http://www.open-open.com/lib/view/home/1324204840749" target="_blank">http://www.open-open.com/lib/view/home/1324204840749</a></p> <p></p> </div>