摘要: JSON:JavaScript 对象表示法(JavaScript Object Notation)。 作用 是存储和交换文本信息的语法。类似 XML。JSON 比 XML 更小、更快,更易解析。 JSON 对象 var employees = { "firstName":"John" , "last 阅读全文
posted @ 2020-05-22 15:00 gaoshengjun 阅读(627) 评论(0) 推荐(0) 编辑
摘要: 1 原生javascript实现ajax请求 参见w3c "值得注意的是写请求路径是:一定不需要加 / “ <script type="text/javascript"> function fun() { var xmlhttp; if(window.XMLHttpRequest){ xmlhttp 阅读全文
posted @ 2020-05-22 14:55 gaoshengjun 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 动态代理的格式 Porxy.newProxyInstance( ClassLoader loader, //指定当前目标对象使用类加载器 Class<?>[] interfaces, //目标对象实现的接口的类型 new InvocationHandler() { //事件处理器 @Override 阅读全文
posted @ 2020-05-22 10:52 gaoshengjun 阅读(214) 评论(0) 推荐(0) 编辑