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

📄 yahoo.smd

📁 这是一个ajax的例子大家好好的看看就是一个鱼眼的效果
💻 SMD
📖 第 1 页 / 共 2 页
字号:
		relatedTags: {			target: "http://search.yahooapis.com/MyWebService/V1/relatedTags",			parameters: [				{ name: "tag", type: "string", optional: false, "default": "" },				{ name: "yahooid", type: "string", optional: true, "default": "" },				{ name: "sort", type: "string", optional: true, "default": "popularity" }, // can be "popularity", "tag", "date"				{ name: "reverse_sort", type: "boolean", optional: true, "default": 0 },				{ name: "results", type: "integer", optional: true, "default": 10 }, // max 50				{ name: "start", type: "integer", optional: true, "default": 1 }			]		},		//		// NEWS SEARCH		//		// http://developer.yahoo.com/search/news/V1/newsSearch.html		newsSearch: {			target: "http://search.yahooapis.com/NewsSearchService/V1/newsSearch",			parameters: [				{ name: "query", type: "string", optional: false, "default": "" },				{ name: "type", type: "string", optional: true, "default": "any" }, // can be "all", "any", "phrase"				{ name: "results", type: "integer", optional: true, "default": 10 }, // max 50				{ name: "start", type: "integer", optional: true, "default": 1 },				{ name: "sort", type: "string", optional: true, "default": "rank" }, // can be "rank", "date"				{ name: "language", type: "string", optional: true, "default": null },				{ name: "site", type: "string", optional: true, "default": null }			]		},		//		// SHOPPING		//		// http://developer.yahoo.com/shopping/V2/catalogListing.html		catalogListing: {			target: "http://shopping.yahooapis.com/ShoppingService/V2/catalogListing",			parameters: [				{ name: "catalogid", type: "integer", optional: true, "default": null }, // required if idtype,idvalue are not specified				{ name: "getlisting", type: "boolean", optional: true, "default": 1 },				{ name: "getreview", type: "boolean", optional: true, "default": 0 },				{ name: "getspec", type: "boolean", optional: true, "default": 0 },				{ name: "idtype", type: "string", optional: true, "default": null }, // can be "upc", "brand,model", "brand,partnum"; required if catalogid is not specified				{ name: "idvalue", type: "string", optional: true, "default": null }, // required if catalogid is not specified				{ name: "onlynew", type: "boolean", optional: true, "default": 1 },				{ name: "reviewstart", type: "integer", optional: true, "default": 1 },				{ name: "reviewsort", type: "string", optional: true, "default": "mostRecommended_descending" }, // can be "mostRecommended_descending", "mostRecommended_ascending", "latest_descending", "latest_ascending", "highestRated_descending", "highestRated_ascending"				{ name: "zip", type: "string", optional: true, "default": null }			]		},		// http://developer.yahoo.com/shopping/V1/merchantSearch.html		merchantSearch: {			target: "http://api.shopping.yahoo.com/ShoppingService/V1/merchantSearch",			parameters: [				{ name: "merchantid", type: "integer", optional: false, "default": null }			]		},		// http://developer.yahoo.com/shopping/V3/productSearch.html		productSearch: {			target: "http://shopping.yahooapis.com/ShoppingService/V3/productSearch",			parameters: [				{ name: "query", type: "string", optional: true, "default": "" }, // required if category is not specified				{ name: "category", type: "any", optional: true, "default": "" }, // required if query is not specified				{ name: "class", type: "string", optional: true, "default": null }, // can be "catalogs", "freeoffers", "paidoffers"; defaults to all three of these				{ name: "department", type: "integer", optional: true, "default": null },				{ name: "highestprice", type: "float", optional: true, "default": null },				{ name: "lowestprice", type: "float", optional: true, "default": null },				{ name: "merchantId", type: "integer", optional: true, "default": null },				{ name: "refinement", type: "string", optional: true, "default": null }, // used only if category is specified				{ name: "results", type: "integer", optional: true, "default": 10 }, // 1-50				{ name: "show_numratings", type: "boolean", optional: true, "default": 0 },				{ name: "show_narrowing", type: "boolean", optional: true, "default": 1 },				{ name: "sort", type: "string", optional: true }, // can be "price_ascending", "price_descending", "userrating_ascending", "userrating_descending"; omitted, the default is to sort by relevance				{ name: "start", type: "integer", optional: true, "default": 1 } // 1-300			]		},		//		// SITE EXPLORER		//		// http://developer.yahoo.com/search/siteexplorer/V1/inlinkData.html		inlinkData: {			target: "http://search.yahooapis.com/SiteExplorerService/V1/inlinkData",			parameters: [				{ name: "query", type: "string", optional: false, "default": "" },				{ name: "results", type: "integer", optional: true, "default": 50 }, // max 100				{ name: "start", type: "integer", optional: true, "default": 1 },				{ name: "entire_site", type: "boolean", optional: true, "default": null },				{ name: "omit_inlinks", type: "string", optional: true, "default": "none" } // can be "none", "domain", "subdomain"			]		},		// http://developer.yahoo.com/search/siteexplorer/V1/pageData.html		pageData: {			target: "http://search.yahooapis.com/SiteExplorerService/V1/pageData",			parameters: [				{ name: "query", type: "string", optional: false, "default": "" },				{ name: "results", type: "integer", optional: true, "default": 50 }, // max 100				{ name: "start", type: "integer", optional: true, "default": 1 },				{ name: "domain_only", type: "boolean", optional: true, "default": null }			]		},		// http://developer.yahoo.com/search/siteexplorer/V1/ping.html		ping: {			target: "http://search.yahooapis.com/SiteExplorerService/V1/ping",			parameters: [				{ name: "sitemap", type: "string", optional: false, "default": "" }			]		},		// http://developer.yahoo.com/search/siteexplorer/V1/updateNotification.html		updateNotification: {			target: "http://search.yahooapis.com/SiteExplorerService/V1/updateNotification",			parameters: [				{ name: "url", type: "string", optional: false, "default": "" }			]		},		//		// TRAFFIC		//		// http://developer.yahoo.com/traffic/rest/V1/index.html		trafficData: {			target: "http://local.yahooapis.com/MapsService/V1/trafficData",			parameters: [				{ name: "street", type: "string", optional: true, "default": "" },				{ name: "city", type: "string", optional: true, "default": "" },				{ name: "state", type: "string", optional: true, "default": null }, // full name or two-letter abbreviation				{ name: "zip", type: "any", optional: true, "default": null }, // ddddd or ddddd-dddd format				{ name: "location", type: "string", optional: true, "default": null }, // free text, supersedes the street, city, state, zip fields				{ name: "latitude", type: "float", optional: true }, // -90 to 90				{ name: "longitude", type: "float", optional: true }, // -180 to 180				{ name: "severity", type: "integer", optional: true, "default": 1 }, // can be 1-5				{ name: "zoom", type: "integer", optional: true, "default": 6 }, // can be 1-12				{ name: "radius", type: "float", optional: true }, // in miles, default varies with location; ignored if zoom is specified				{ name: "include_map", type: "boolean", optional: true, "default": 0 },				{ name: "image_type", type: "string", optional: true, "default": "png" }, // can be "png" or "gif"				{ name: "image_height", type: "integer", optional: true, "default": 500 }, // in pixels, can be 10-2000				{ name: "image_width", type: "integer", optional: true, "default": 620 } // in pixels, can be 10-2000			]		},		//		// TRAVEL		//		// http://developer.yahoo.com/travel/tripservice/V1.1/tripSearch.html		tripSearch: {			target: "http://travel.yahooapis.com/TripService/V1.1/tripSearch",			parameters: [				{ name: "query", type: "string", optional: true, "default": "" },				{ name: "results", type: "integer", optional: true, "default": 10 }, // max 50				{ name: "start", type: "integer", optional: true, "default": 1 }			]		},		// http://developer.yahoo.com/travel/tripservice/V1.1/getTrip.html		getTrip: {			target: "http://travel.yahooapis.com/TripService/V1.1/getTrip",			parameters: [				{ name: "id", type: "integer", optional: false, "default": null }			]		},		//		// UTILITY SERVICES		//		// http://developer.yahoo.com/util/timeservice/V1/getTime.html		/* RGG: commented out because it refuses to return JSON format even when you tell it		        to do so (it returns a <script> tag)		getTime: {			target: "http://developer.yahooapis.com/TimeService/V1/getTime",			parameters: [				{ name: "format", type: "string", optional: true, "default": "unix" } // can be "unix" for unix timestamp, "ms" for milliseconds			]		},		*/		//		// VIDEO SEARCH		//		// http://developer.yahoo.com/search/video/V1/videoSearch.html		videoSearch: {			target: "http://search.yahooapis.com/VideoSearchService/V1/videoSearch",			parameters: [				{ name: "query", type: "string", optional: false, "default": "" },				{ name: "type", type: "string", optional: true, "default": "any" }, // can be "all", "any", "phrase"				{ name: "results", type: "integer", optional: true, "default": 10 }, // max 50				{ name: "start", type: "integer", optional: true, "default": 1 },				{ name: "format", type: "string", optional: true, "default": "any" }, // can be "any", "avi", "flash", "mpeg", "msmedia", "quicktime", "realmedia"				{ name: "adult_ok", type: "boolean", optional: true, "default": null },				{ name: "site", type: "string", optional: true, "default": null }			]		},		//		// WEB SEARCH		//		// http://developer.yahoo.com/search/web/V1/webSearch.html		webSearch: {			target: "http://search.yahooapis.com/WebSearchService/V1/webSearch",			parameters: [				{ name: "query", type: "string", optional: false, "default": "" }, // must be less than 1kb				{ name: "region", type: "string", optional: true, "default": "us" },				{ name: "type", type: "string", optional: true, "default": "any" }, // can be "all", "any", "phrase"				{ name: "results", type: "integer", optional: true, "default": 10 }, // max 100				{ name: "start", type: "integer", optional: true, "default": 1 },				{ name: "format", type: "string", optional: true, "default": "any" }, // can be "any", "html", "msword", "pdf", "ppt", "rss", "txt", "xls"				{ name: "adult_ok", type: "boolean", optional: true, "default": null },				{ name: "similar_ok", type: "boolean", optional: true, "default": null },				{ name: "language", type: "string", optional: true, "default": null },				{ name: "country", type: "string", optional: true, "default": null },				{ name: "site", type: "string", optional: true, "default": null },				{ name: "subscription", type: "string", optional: true, "default": null },				{ name: "license", type: "string", optional: true, "default": "any" } // can be "any", "cc_any", "cc_commercial", "cc_modifiable"			]		},		// http://developer.yahoo.com/search/web/V1/spellingSuggestion.html		spellingSuggestion: {			target: "http://search.yahooapis.com/WebSearchService/V1/spellingSuggestion",			parameters: [				{ name: "query", type: "string", optional: false, "default": "" }			]		},		// http://developer.yahoo.com/search/web/V1/relatedSuggestion.html		relatedSuggestion: {			target: "http://search.yahooapis.com/WebSearchService/V1/relatedSuggestion",			parameters: [				{ name: "query", type: "string", optional: false, "default": "" },				{ name: "results", type: "integer", optional: true, "default": 10 } // max 50			]		}	}}

⌨️ 快捷键说明

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