摘要: jQuery控制位置、滚条操作 jQuery获取块级元素的宽高 $('div').width() $('div').innerWidth() //padding + width $('div').outerWidth() //padding + width + border $('div').out 阅读全文
posted @ 2017-09-06 10:42 Bilyooyam 阅读(231) 评论(0) 推荐(0) 编辑
摘要: jQuery自定义插件 jQuery.prototype.sayHello = function(){ console.log("hello"); } $(document).sayHello(); //相当于 $.fn.sayHello = function(){ console.log("hel 阅读全文
posted @ 2017-09-06 09:39 Bilyooyam 阅读(97) 评论(0) 推荐(0) 编辑
摘要: jQuery基础入门学习 入口函数 JavaScript的入口函数 window.onload=function(){ console.log('这是Javascript的入口函数!'); }; jQuery的两种入口函数 $(document).ready(function(){ console. 阅读全文
posted @ 2017-09-06 09:36 Bilyooyam 阅读(238) 评论(0) 推荐(0) 编辑