获得徽章 0
- 她生气时,他默默改了一夜 Bug;
她哭时,他递上纸巾说:“我有个新需求——做你永不宕机的服务器。”
她终于笑了:“那你通过测试了吗?”
他点头:“但你的心,我还在读文档……”
她突然抢过他的键盘:“现在!立刻!提交恋爱申请!”
他愣住:“可…可我没写 try...catch(错误处理)…”
她按下回车:“怕什么?——我陪你 debug 一辈子。”展开52 - 记录一下自己换头像
var ajax = new XMLHttpRequest();
ajax.open('post','juejin.cn',true);
ajax.setRequestHeader('content-type','application/x-www-form-urlencoded');
ajax.send("aid=2608&avatar=p26-passport.byteacctimg.com");
ajax.onreadystatechange = function (){
if(ajax.readyState==4&&ajax.status==200){
var c = ajax.responseText;
console.log(c)
}
}展开212
![[流泪]](http://lf-web-assets.juejin.cn/obj/juejin-web/xitu_juejin_web/img/jj_emoji_6.dde0d83.png)
![[傲慢]](http://lf-web-assets.juejin.cn/obj/juejin-web/xitu_juejin_web/img/jj_emoji_23.27eb25d.png)