堆栈Node.js/Express.jsMongoDB/猫鼬智威汤逊怎样跑将variables.env.sample复制到variables.env并对其进行自定义npmstart//ornpmrunwatch数据样本:npmrunseednpmrunseed:deletenpmrunseed:refresh皮棉:npmrunlint路线/API根网址:curl-XGET\http://localhost:3000/API验证:curl-XPOST\http://localhost:3000/api/authenticate\-H'content-type:application/json'\-d'{ "email":"xinh@mail.com", "password":"123456"}'API获取用户:curl-XGET\http://localhost:3000/api/users\-H'auth
2016/6/16 15:29:56 65KB nodejs javascript jwt mongodb
1
1.直接上最简单的一种ajax异步上传图片,并预览html:<!DOCTYPEhtml><html><head><metahttp-equiv="Content-Type"content="text/html;charset=UTF-8"><title>图片上传|cookie</title></head><body>file:<inputtype="file"id="images"name="image"/>desc:<inputtype="text"id="desc"name="desc"/><br
2018/1/6 14:43:32 35KB ajax 传照片 图片
1
直接配合前面的后台程序,就可以实现跨域抓取天气信息了.目前已完满支持firefox了代码如下:<!DOCTYPE?html?PUBLIC?“-//W3C//DTD?XHTML?1.0?Transitional//EN”?“http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”><html?xmlns=”http://www.w3.org/1999/xhtml”><head><meta?http-equiv=”Content-Type”?content=”text/html;?charset=utf-8″?/><title>
2015/9/12 14:36:34 53KB ajax 天气 天气预报
1
对初学AJAX的同学会有协助的。
----------ajax.js---------------varrequest=false;try{ request=newXMLHttpRequest();}catch(trymicrosoft){ try{ request=newActiveXObject("Msxml2.XMLHTTP"); } catch(othermicrosoft){ try{ request=newActiveXObject("Microsoft.XMLHTTP"); } catch(failed){ request=false; } }}if(!request)alert("ErrorinitializingXMLHttpRequest!");functiongetCustomerInfo(){ document.getElementById("output").innerHTML="Loading..."; document.getElementById("submit").disabled=true; varname=document.getElementById("name").value; vartext=document.getElementById("text").value; varkey=document.getElementById("key").value; varanswer=document.getElementById("answer").value; varpoststr="name="+name+"&text="+text+"&key="+key+"&answer="+answer; varurl="doit.php"; request.open("POST",url,true); request.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); request.send(poststr); request.onreadystatechange=updatePage;}functionupdatePage(){if(request.readyState==4)if(request.status==200)document.getElementById("output").innerHTML=request.responseText;elseif(request.status==404)alert("目标地址不存在");elsealert("警告:错误代码"+request.status);}functiongetInfo(){ document.getElementById("output1").innerHTML="Loading..."; varurl="show.php"; vard=newDate().getTime(); request.open("GET",url+"?d="+d.toString(),true); request.onreadystatechange=updatePage1; request.send();}functionupdatePage1(){if(request.readyState==4)if(request.status==200)document.getElementById("output1").innerHTML=request.responseText;elseif(request.status==404)alert("目标地址不存在");elsealert("警告:错误代码"+request.status);}
2017/4/14 22:50:25 79KB ajax
1
在日常工作中,钉钉打卡成了我生活中不可或缺的一部分。然而,有时候这个看似简单的任务却给我带来了不少烦恼。 每天早晚,我总是得牢记打开钉钉应用,点击"工作台",再找到"考勤打卡"进行签到。有时候因为工作忙碌,会忘记打卡,导致考勤异常,影响当月的工作评价。而且,由于我使用的是苹果手机,有时候系统更新后,钉钉的某些功能会出现异常,使得打卡变得更加麻烦。 另外,我的家人使用的是安卓手机,他们也经常抱怨钉钉打卡的繁琐。尤其是对于那些不太熟悉手机操作的长辈来说,每次打卡都是一次挑战。他们总是担心自己会操作失误,导致打卡失败。 为了解决这些烦恼,我开始思考是否可以通过编写一个全自动化脚本来实现钉钉打卡。经过一段时间的摸索和学习,我终于成功编写出了一个适用于苹果和安卓系统的钉钉打卡脚本。
2024-04-09 15:03 15KB 钉钉 钉钉打卡