如何嵌入我的Web应用程序 [英] How can I embed my web application

查看:62
本文介绍了如何嵌入我的Web应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Javascript,HTML5和CSS Web应用程序开发人员,但我不知道如何使我的Web应用程序可嵌入,因此人们也可以将其嵌入到自己的网站中.请,除了PHP以外的任何方法都将受到赞赏.

I am a Javascript, HTML5 and CSS web application developer, but I don't know how to make my web apps embeddable, so people can embed them in their sites too. Please, any method except PHP will be much appreciated.

推荐答案

提供一个人们将在其网页中包含的javascript文件+一些带有

Provide a javascript file that people will include in their web pages + some div with marker like

<div id="divtofillwithyourcontent"></div>

脚本应使用您的内容填充此元素.

And script should fill this element with your content.

或者如果需要访问cookie,请使用iFrame(我建议您在所有其他情况下都不要使用它)

Or use iFrame if you need access to your cookies (i suggest you not use it in all other cases)

这篇关于如何嵌入我的Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆