摘要: 1、 $('i1').height() # 获取标签的高度 纯高度$('i1').innerHeight() # 获取边框 + 纯高度 + ?$('i1').outerHeight() # 获取边框 + 纯高度 + ?$('i1').outerHeight(true) # 获取边框 + 纯高度 + 阅读全文
posted @ 2020-04-24 20:25 凸凸yolotheway 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 1、$.extend() (a) <script> $.extend({ 'ws':function(){ return'sb'; //ws为方法名 } }); var v=$.ws(); alert(v); //执行该函数时,弹出框会弹出 sb </script> (b)也可以将$.extend的 阅读全文
posted @ 2020-04-24 20:14 凸凸yolotheway 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 1、表单验证 表单验证使用到了18章节的 return false与return true css代码: <style> .error{ color: red; } </style> html代码: <form id="f1" action="14--对11模态编程框实现删除功能.html" met 阅读全文
posted @ 2020-04-24 20:03 凸凸yolotheway 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 1、jquery中使用return false来阻止事件的发生 以两个超链接为例: html代码如下: <a onclick="return ClickOn();" href="http://www.baidu.com">百度</a> <a id="i1" href="http://www.baid 阅读全文
posted @ 2020-04-24 19:49 凸凸yolotheway 阅读(122) 评论(0) 推荐(0) 编辑