摘要: 1、CSS中引用remodal.css、remodal-default-theme.css2、JS中引用remodal.js3、点我 Remodal Responsive, lightweight, fast, synchronized with CSS anim... 阅读全文
posted @ 2015-06-27 15:43 sphinxhero 阅读(1180) 评论(0) 推荐(0) 编辑
摘要: var t = [{ 'a': 1}, { 'a': 2 }, { 'a': 3 }, { 'a':4 }]; t.push({ 'a': 5 }); //添加 t[0].a = 11; //修改 t.splice(1,1); //删除 for... 阅读全文
posted @ 2015-06-23 21:49 sphinxhero 阅读(1120) 评论(0) 推荐(0) 编辑
摘要: 一、使用jsonp请求 1 $.ajax({ 2 type: "GET", 3 url: "http://10.174.1.1/Home/Test?callback=?", 4 data: { id: "1" }... 阅读全文
posted @ 2015-06-02 13:51 sphinxhero 阅读(855) 评论(0) 推荐(0) 编辑
摘要: EF中需要传入多条件的Expression>时可以这样用:(u) => (u.Receiver == name && u.isRead == true) 阅读全文
posted @ 2015-03-08 19:29 sphinxhero 阅读(407) 评论(0) 推荐(0) 编辑
摘要: 1、js获取不到动态创建的元素:$("").click(function(){ .... }); // 这样不行必须改成这样:$(document).on("click", ".button", function () {....return false;//阻止事件冒泡}); 2、js... 阅读全文
posted @ 2015-03-07 21:25 sphinxhero 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 1、input中文字垂直居中问题 解决方案:在IE中需要将height和line-height设置成一样,但是如果height过大,在chorme浏览器中光标跟input的height一样高。需要给input的height设定一个较小的高度,然后用padding去填充。(完美解决) 使用示例: ... 阅读全文
posted @ 2015-03-03 08:19 sphinxhero 阅读(369) 评论(0) 推荐(0) 编辑