⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme

📁 用最近的dojo1.2.1制作前端的ajax购书网站
💻
字号:
Using Amazon S3 with Dojo has the following prerequisites:    * You must be signed up to use Amazon S3. You can sign up for Amazon S3 at http://aws.amazon.com/s3.    * Use the provided proxy (/dojox/rpc/s3/proxy.php) with PHP 5.    * proxy.php requires the following modules:          o Crypt_HMAC          o HTTP_RequestTo use S3 from Dojo, you need a proxy. You can use the provided proxy example file by renaming proxy.example-php to proxy.php and then you must enter your Amazon access key and secret access keyinto the proxy.php file on line 3 and 4:$accessKey = "access key";$secretAccessKey = "secret access key";You then use the Dojo RPC service with the "PROXIED-PATH" envelope:dojo.require("dojox.rpc.Service");dojo.require("dojox.rpc.ProxiedPath");var s3Buckets = new dojox.rpc.Service({	target:"http://s3.amazonaws.com/",	proxyUrl:"../s3/proxy.php", // the path to the proxy	transport:"REST",	envelope:"PROXIED-PATH",	contentType:"application/json",	services:{		myBucket:{			target:"myBucket",			parameters:[{type:"string"}]		}	}});To use the S3 as a Dojo data store you can use the S3JsonRestStore module. First setup an RPC service as shown above and then pass the RPC service to the S3JsonRestStore:dojo.require("dojox.data.S3JsonRestStore");s3Store = new dojox.data.S3JsonRestStore({service:s3Buckets.myBucket}); // and create a store for itYou can then use the s3Store as a normal Read/Write Dojo Data store.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -