摘要: php 判断今天的前一天,或前后多少天的代码 php判断一个日期距今天还有多少天 阅读全文
posted @ 2017-11-13 19:04 ysx_小鱼 阅读(169) 评论(0) 推荐(0)
摘要: 1 $(window).resize(function () { //当浏览器大小变化时 2 alert($(window).height()); //浏览器时下窗口可视区域高度 3 alert($(document).height()); //浏览器时下窗口文档的高度 4 alert($(document.body).h... 阅读全文
posted @ 2017-10-30 12:00 ysx_小鱼 阅读(2802) 评论(0) 推荐(0)
摘要: jquery获取json对象中的key小技巧 比如有一个json 想分别获取它的key 和 value 小技巧来啦 还要一种方法用jquery回调函数完成的 阅读全文
posted @ 2017-10-13 18:00 ysx_小鱼 阅读(2955) 评论(0) 推荐(0)
摘要: 这些文字显示在内层元素中。 阅读全文
posted @ 2017-10-13 17:56 ysx_小鱼 阅读(186) 评论(0) 推荐(0)
摘要: 可以直接利用css()方法获取元素的样式属性,JQuery代码如下: $("p").css("color"); //获取p元素的样式颜色 无论color属性是外部CSS导入,还是直接拼接在HTML元素里(内联),css()方法都可以获取到属性style里的其他属性的值。 也可以直接利用css()方法 阅读全文
posted @ 2017-10-13 17:46 ysx_小鱼 阅读(11402) 评论(0) 推荐(0)
摘要: I am playing with jsplumb, but I am not able to delete the connection between two divs having only the id of one div. If you've multiple connections f 阅读全文
posted @ 2017-09-30 17:29 ysx_小鱼 阅读(5760) 评论(0) 推荐(0)
摘要: setup 如果不使用jQuery或者类jQuery库,则传入的节点得用id的形式,否则jsPlumb会为元素设置一个id。 最好确认jsPlumb加载完毕之后,再开始使用相关功能。 默认情况下,jsPlumb在浏览器的窗口中注册,为整个页面提供一个静态实例,所以也可以把它看成一个类,来实例化jsP 阅读全文
posted @ 2017-09-30 17:28 ysx_小鱼 阅读(7618) 评论(0) 推荐(1)
摘要: 方法简介: empty() empty() This method removes not only child (and other descendant) elements, but also any text within the set of matched elements. This i 阅读全文
posted @ 2017-09-07 15:28 ysx_小鱼 阅读(274) 评论(0) 推荐(0)
摘要: HTML编码规范 WEB前端命名规范 阅读全文
posted @ 2017-09-01 09:53 ysx_小鱼 阅读(5416) 评论(1) 推荐(2)
摘要: CSS命名规则 头:header 内容:content/containe 尾:footer 导航:nav 侧栏:sidebar 栏目:column 页面外围控制整体布局宽度:wrapper 左右中:left right center 登录条:loginbar 标志:logo 广告:banner 页面 阅读全文
posted @ 2017-09-01 09:48 ysx_小鱼 阅读(230) 评论(0) 推荐(0)