文件名称:sub_req:跨子域发出请求
文件大小:3.66MB
文件格式:ZIP
更新时间:2024-06-03 13:06:22
JavaScript
sub_req 简单的包装程序可以跨子域发出请求。 得到它 对于主持人: 对于网关域: -请参阅文件中的注释。 原料药 以下是用法示例。 假设您有两个要交流的域名 sub1.domain.com(主站) sub2.domain.com sub2.domain.com应该提供一个交流页面,下面是一个示例,它也托管。 <html> <body> <!-- This should basically be whatever you have in the cache already from your calling page which has an ajax wrapper. In my case its jQuery --> [removed][removed] <scrip
【文件预览】:
sub_req-master
----index.html(844B)
----sub_req.coffee(1KB)
----js()
--------sub_req.coffee(1KB)
--------sub_req_gateway.coffee(448B)
----html()
--------sub_req.html(390B)
--------test.html(166B)
----spec()
--------sub_req_spec.coffee(34B)
--------jasmine-1.0.2()
----build()
--------sub_req.min.js(884B)
--------sub_req_gateway.min.js(241B)
--------tools()
--------sub_req.js(2KB)
--------sub_req_gateway.js(459B)
----README.md(2KB)
----Cakefile(1KB)
----.gitignore(15B)