摘要:
作为Web开发对常用http的请求头和响应头熟悉了解一下还是很有必要的。比如请求头中Content-type指定了请求的内容,若类型是 application/x-www-form-urlencoded,就可以调用reqeust的获取参数方法取到内容,若是其它都需要调用获取流的方 法获取。又比如响应 阅读全文
posted @ 2018-09-09 22:53
suri&zh
阅读(136)
评论(0)
推荐(0)
~function(){
var person=prompt('type your family number of members');
if(person>=2){
alert('you have a lovely family')
}else if(person==1){
alert('you are single');
}else{
alert('you are martian')
}
}();