12 2015 档案
摘要:var objXMLHttp;/** * 进行createXMLHttpRequest对象的创建,由于不同的浏览器厂商对于XMLHttpRequest的支持不一样,因此创建的时候需要根据不同的浏览器进行创建 * */function createXMLHttpRequest(){ //对于Fi...
阅读全文
摘要://需要Base64见:http://www.webtoolkit.info/javascript-base64.html function make_base_auth(user, password) { var tok = user + ':' + pass...
阅读全文
摘要:之前Json字符反序列化为C#对象时总是写一个实体类。。如:{"a":5,"b":10} 这种json字符串对应的实体类为:public class Rootobject { public int a { get; set; } public int b { get; set; } }对应的C#后台...
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Web;using System.Threading;using System.Threading.Tasks...
阅读全文
摘要:function test(){ //hahahhahahhahahha}alert(test.toString());
阅读全文
摘要:var obj={x:10,y:50};var t= JSON.stringify(obj);console.log(typeof t);var gg= JSON.parse(t);console.log(typeof gg)
阅读全文
摘要:function getXMLHttpRequest() { var xhr; if(window.ActiveXObject) { xhr= new ActiveXObject("Microsoft.XMLHTTP"); }else if (...
阅读全文