??xml version="1.0" encoding="utf-8" standalone="yes"?>色婷婷综合缴情免费观看,国产午夜精品视频免费不卡69堂 ,满满都是荷尔蒙韩剧在线观看http://www.aygfsteel.com/pinuo/category/29940.htmlzh-cnSat, 15 Mar 2008 12:52:51 GMTSat, 15 Mar 2008 12:52:51 GMT60Rest in Myspacehttp://www.aygfsteel.com/pinuo/archive/2008/03/14/186267.htmlpinuopinuoFri, 14 Mar 2008 05:57:00 GMThttp://www.aygfsteel.com/pinuo/archive/2008/03/14/186267.htmlhttp://www.aygfsteel.com/pinuo/comments/186267.htmlhttp://www.aygfsteel.com/pinuo/archive/2008/03/14/186267.html#Feedback0http://www.aygfsteel.com/pinuo/comments/commentRss/186267.htmlhttp://www.aygfsteel.com/pinuo/services/trackbacks/186267.htmlRESTful API Introduction

A RESTful Interface sends an HTTP GET or POST to call exposed methods on a network, and receives an XML document in return.

The MDP (MySpace Developer Platform) provides a RESTful API that allows server-to-server requests to expose user information for installed users.

This API permits modification of user data if the user has granted the required access to the application, and exposes communication functionality for friend activities, messaging, bulletins, and application notifications.

The MySpace RESTful API adheres to the principles of REST architecture, and supports all HTTP verbs - GET, PUT, POST, DELETE, and HEAD.

Response formats should be as robust as possible. Resources default to Plain Old XML, but this can be modified by using an extension on the resource such as .xml or .json.  

 

REST (Representational State Transfer) is a type of software architecture used on distributed hypermedia systems such as the World Wide Web.

The MDP (MySpace Developer Platform) is based on REST principles and has the following functionality:

 
1.  Allows server-to-server requests to expose user information
     of installed users.

2.  Allows an application to modify a user's data if the user has
     granted appropriate permission to the application.

3.  Exposes communication functionality for friend activities,  
     messaging, bulletins, and application notifications.

 

REST architecture defines how the network resources are described and addressed, and a distinction is made between "high REST" and "low REST." The distinctions between the high REST and low REST architectures are described below.

High REST uses the four main HTTP verbs - GET, POST, PUT, DELETE - to manipulate resource representations. XML files serve as message carriers that insert meta data into HTTP headers.

Low REST is also known as "Plain Old XML" over HTTP or POX.  Low REST architecture uses only HTTP GETs to access all APIs, and conforms to the constraints of the HTTP GET and POST verbs associated with non-XML web architecture.



pinuo 2008-03-14 13:57 发表评论
]]>
107个常用Javascript语句(zz)http://www.aygfsteel.com/pinuo/archive/2008/03/07/184541.htmlpinuopinuoFri, 07 Mar 2008 08:37:00 GMThttp://www.aygfsteel.com/pinuo/archive/2008/03/07/184541.htmlhttp://www.aygfsteel.com/pinuo/comments/184541.htmlhttp://www.aygfsteel.com/pinuo/archive/2008/03/07/184541.html#Feedback0http://www.aygfsteel.com/pinuo/comments/commentRss/184541.htmlhttp://www.aygfsteel.com/pinuo/services/trackbacks/184541.html
From: http://9host.cn/Javascript/20074221808146404.html
1.document.write(""); 输出语句
2.JS中的注释?/
3.传统的HTML文档序?document->html->(head,body)
4.一个浏览器H口中的DOM序?window->(navigator,screen,history,location,document)
5.得到表单中元素的名称和?document.getElementById("表单中元素的ID?).name(或value)
6.一个小写{大写的JS: document.getElementById("output").value = document.getElementById("input").value.toUpperCase();
7.JS中的值类?String,Number,Boolean,Null,Object,Function
8.JS中的字符型{换成数值型:parseInt(),parseFloat()
9.JS中的数字转换成字W型:("" 变量)
10.JS中的取字W串长度?(length)
11.JS中的字符与字W相q接使用 ?
12.JS中的比较操作W有:=={于,!=不等?>,>=,<.<=
13.JS中声明变量?var来进行声?br /> 14.JS中的判断语句l构:if(condition){}else{}
15.JS中的循环l构:for([initial expression];[condition];[upadte expression]) {inside loop}
16.循环中止的命令是:break
17.JS中的函数定义:function functionName([parameter],...){statement[s]}
18.当文件中出现多个form表单?可以用document.forms[0],document.forms[1]来代?
19.H口:打开H口window.open(), 关闭一个窗?window.close(), H口本n:self
20.状態栏的讄:window.status="字符";
21.弹出提示信息:window.alert("字符");
22.弹出?window.confirm();
23.弹出输入提示?window.prompt();
24.指定当前昄链接的位|?window.location.href="URL"
25.取出H体中的所有表单的数量:document.forms.length
26.关闭文档的输出流:document.close();
27.字符串追加连接符: =
28.创徏一个文档元?document.createElement(),document.createTextNode()
29.得到元素的方?document.getElementById()
30.讄表单中所有文本型的成员的gؓI?
var form = window.document.forms[0]
for (var i = 0; i<form.elements.length;i ){
if (form.elements.type == "text"){
form.elements.value = "";
}
}
31.复选按钮在JS中判断是否选中:document.forms[0].checkThis.checked (checked属性代表ؓ是否选中q回TRUE或FALSE)
32.单选按钮组(单选按钮的名称必须相同):取单选按钮组的长度document.forms[0].groupName.length
33.单选按钮组判断是否被选中也是用checked.
34.下拉列表框的?document.forms[0].selectName.options[n].value (n有时用下拉列表框名称加上.selectedIndex来確定被选中的?
35.字符串的定义:var myString = new String("This is lightsword");
36.字符串{成大?string.toUpperCase(); 字符串{成小?string.toLowerCase();
37.q回字符?在字W串1中出现的位置:String1.indexOf("String2")!=-1则说明没扑ֈ.
38.取字W串中指定位|的一个字W?StringA.charAt(9);
39.取出字符串中指定L和终点的子字W串:stringA.substring(2,6);
40.数学函数:Math.PI(q回圆周?,Math.SQRT2(q回开?,Math.max(value1,value2)q回两个C的最在?Math.pow(value1,10)q回value1的十ơ方,Math.round(value1)四舍五入函数,Math.floor(Math.random()*(n 1))q回隨机?br /> 41.定义日期型变?var today = new Date();
42.日期函数列表:dateObj.getTime()得到旉,dateObj.getYear()得到q䆾,dateObj.getFullYear()得到四位的年?dateObj.getMonth()得到月䆾,dateObj.getDate()得到?dateObj.getDay()得到日期?dateObj.getHours()得到时,dateObj.getMinutes()得到?dateObj.getSeconds()得到U?dateObj.setTime(value)讄旉,dateObj.setYear(val)讄q?dateObj.setMonth(val)讄?dateObj.setDate(val)讄?dateObj.setDay(val)讄星期?dateObj.setHours讄时,dateObj.setMinutes(val)讄?dateObj.setSeconds(val)讄U?[注意:此日期时间从0开始计]
43.FRAME的表C方? [window.]frames[n].ObjFuncVarName,frames["frameName"].ObjFuncVarName,frameName.ObjFuncVarName
44.parent代表父亲对象,top代表最端对象
45.打开子窗口的父窗口ؓ:opener
46.表示当前所属的位置:this
47.当在链接中调用JS函数时用:(javascript :)来开头后面加函数?br /> 48.在老的览器中不执行此JS:<!-- //-->
49.引用一个文件式的JS:<script type="text/javascript" src="aaa.js"></script>
50.指定在不支持脚本的浏览器昄的HTML:<noscript></noscript>
51.当超铑֒onCLICK事g都有?则老版本的览器{向a.html,否则转向b.html.?<a href="a.html" onclick="location.href='b.html';return false">dfsadf</a>
52.JS的內建对象有:Array,Boolean,Date,Error,EvalError,Function,Math,Number,Object,RangeError,ReferenceError,RegExp,String,SyntaxError,TypeError,URIError
53.JS中的换行:\n
54.H口全屏大小:<script>function fullScreen(){ this.moveTo(0,0);this.outerWidth=screen.availWidth;this.outerHeight=screen.availHeight;}window.maximize=fullScreen;</script>
55.JS中的all代表其下层的全部元素
56.JS中的焦点序:document.getElementByid("表单元素").tabIndex = 1
57.innerHTML的值是表单元素的??lt;p id="para">"how are <em>you</em>"</p>,则innerHTML的值就?how are <em>you</em>
58.innerTEXT的值和上面的一?只不q不会把<em>q种標记昄出来.
59.contentEditable可设|元素是否可被修?isContentEditableq回是否可修改的状態.
60.isDisabled判断是否为禁止状?disabled讄止状態
61.length取得长度,q回整型数?br /> 62.addBehavior()是一UJS调用的外部函数文件其扩展名ؓ.htc
63.window.focus()使当前的H口在所有窗口之?
64.blur()指失ȝ?与FOCUS()相反.
65.select()指元素ؓ选中状態.
66.防止用户Ҏ(gu)本框中输入文?onfocus="this.blur()"
67.取出该元素在面中出现的数量:document.all.tags("div(或其它HTML標记W?").length
68.JS中分ZU窗体输?模態和非模態.window.showModaldialog(),window.showModeless()
69.状態栏文字的讄:window.status='文字',默认的状態栏文字讄:window.defaultStatus = '文字.';
70.d到收藏夹:external.AddFavorite("http://www.dannyg.com";,"jaskdlf");
71.JS中遇到脚本错误时不做M操作:window.onerror = doNothing; 指定错误句柄的语法ؓ:window.onerror = handleError;
72.JS中指定当前打开H口的父H口:window.opener,支持opener.opener...的多重l?
73.JS中的self指的是当前的H口
74.JS中状態栏昄內容:window.status="內容"
75.JS中的top指的是框枉中最层的框?br /> 76.JS中关闭当前的H口:window.close();
77.JS中提出是否確认的?if(confirm("Are you sure?")){alert("ok");}else{alert("Not Ok");}
78.JS中的H口重定?window.navigate("http://www.sina.com.cn";);
79.JS中的打印:window.print()
80.JS中的提示输入?window.prompt("message","defaultReply");
81.JS中的H口滚动?window.scroll(x,y)
82.JS中的H口滚动C|?window.scrollby
83.JS中设|时间间?setInterval("expr",msecDelay)或setInterval(funcRef,msecDelay)或setTimeout
84.JS中的模態昄在IE4 ?在NN中不?showModalDialog("URL"[,arguments][,features]);
85.JS中的退Z前用的句柄:function verifyClose(){event.returnValue="we really like you and hope you will stay longer.";}} window.=verifyClose;
86.当窗体第一ơ调用时使用的文件句?onload()
87.当窗体关闭时调用的文件句?onunload()
88.window.location的属? protocol(http:),hostname(www.example.com),port(80),host(www.example.com:80),pathname("/a/a.html"),hash("#giantGizmo",指蟩转到相应的锚?,href(全部的信?
89.window.location.reload()h当前面.
90.window.history.back()q回上一?window.history.forward()q回下一?window.history.go(q回W几?也可以用访问过的URL)
91.document.write()不换行的输出,document.writeln()换行输出
92.document.body.noWrap=true;防止链接文字折行.
93.变量?charAt(W几?,取该变量的第几位的字W?
94."abc".charCodeAt(W几?,q回W几个字W的ASCii码?
95.字符串连?string.concat(string2),或用 =q行q接
96.变量.indexOf("字符",起始位置),q回W一个出现的位置(?开始计?
97.string.lastIndexOf(searchString[,startIndex])最后一ơ出现的位置.
98.string.match(regExpression),判断字符是否匚w.
99.string.replace(regExpression,replaceString)替换现有字符?
100.string.split(分隔W?q回一个数l存储?
101.string.substr(start[,length])取从W几位到指定长度的字W串.
102.string.toLowerCase()使字W串全部变ؓ写.
103.string.toUpperCase()使全部字W变为大?
104.parseInt(string[,radix(代表q制)])强制转换成整?
105.parseFloat(string[,radix])强制转换成Q点型.
106.isNaN(变量):试是否为数值型.
107.定义帔R的关键字:const,定义变量的关键字:var

pinuo 2008-03-07 16:37 发表评论
]]>
վ֩ģ壺 | ½| | | | | ˳| | | ָɽ| ɳ| ԭ| Է| | | ɫ| | ϼ| ɽ| ľ| ٳ| ̨| | | ̨| | | ˴| | ͬ| ɽ| | | | ɽ| ʡ| ï| ƽ| Т| ʩ| |