摘要: 例如post请求 在请求options里面设置{ "withCredentials": true }; let options = new RequestOptions({ "withCredentials": true }); this.http.post( url, body, options) 阅读全文
posted @ 2017-08-01 14:22 timiCoder 阅读(1567) 评论(0) 推荐(0) 编辑
摘要: npm install --save jquery 安装第三方库 npm install --save-dev @types/jquery 安装类型描述文件 在angular-cli.json中引入 在组件中引入 declare var $:any; 阅读全文
posted @ 2017-07-14 13:31 timiCoder 阅读(1119) 评论(0) 推荐(0) 编辑
摘要: <input type="text" autocomplete="off" disableautocomplete/> 阅读全文
posted @ 2017-07-04 11:52 timiCoder 阅读(2094) 评论(0) 推荐(0) 编辑
摘要: 1、下载安装包 2、创建数据库磁盘位置;例如D:\mongodb\test 3、启动MongoDB服务 mongod --dbpath=d:\mongodb\test 阅读全文
posted @ 2017-02-23 10:10 timiCoder 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 今天工作发现chrome浏览器在记住登录账户和密码过后,下次的时候会自动填充。 有的时候这种情况是不可取的,会有些隐患,使用了 autocomplete="off" 属性也不好使, 然后把输入框用form表单分开输入框就可以了 阅读全文
posted @ 2017-02-14 11:11 timiCoder 阅读(1074) 评论(0) 推荐(0) 编辑
摘要: 获取jquery的原生对象: $("#div")[0] 阅读全文
posted @ 2016-12-21 11:14 timiCoder 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 网页可见区域宽: document.body.clientWidth网页可见区域高: document.body.clientHeight网页可见区域宽: document.body.offsetWidth (包括边线的宽)网页可见区域高: document.body.offsetHeight (包 阅读全文
posted @ 2016-08-08 11:35 timiCoder 阅读(18474) 评论(0) 推荐(3) 编辑
摘要: 在不同的浏览器会出现字体的差异,具体设置一下字体,字体大小,高度和行高即可 阅读全文
posted @ 2016-08-01 17:34 timiCoder 阅读(324) 评论(0) 推荐(0) 编辑
摘要: 本文只作为记录,方便以后查阅。 内容原地址:$.ajax( )方法详解及案例_JQuery_wodi0007的博客_程序员博客网 http://u.cxyblog.com/28/article-aid-3327.html 在jquery中ajax实现方法分类很多种,如有:load()、$.get() 阅读全文
posted @ 2016-08-01 14:45 timiCoder 阅读(251) 评论(0) 推荐(0) 编辑
摘要: //简单的面向对象 function 构造函数(){ this.属性; } //写在构造函数里面的属性一般为公共属性,或者通过传值进行改变。 构造函数.原型.方法 = function(){}; //写在原型上面的方法为公共方法, //在创建对象的时候会公共的方法复制到新建的对象上, //在原型上创建的方法,可以提高性... 阅读全文
posted @ 2016-07-31 01:01 timiCoder 阅读(126) 评论(0) 推荐(0) 编辑