摘要:
页面输入框会出现被软键盘挡住的问题: 解决方法:获取input点击事件设置body高度 [html] view plain copy $('input').bind('click',function(e){ var $this = $(this); e.preventDefault(); setTi 阅读全文
posted @ 2017-02-28 10:06
疯子110
阅读(1524)
评论(0)
推荐(0)
摘要:
ios获取软键盘完成事件,通过判断input的onBlur事件即可 阅读全文
posted @ 2017-02-28 10:05
疯子110
阅读(1616)
评论(0)
推荐(0)
摘要:
live()事件 [html] view plain copy $('a').live('click', function() { alert("That tickles!") }); [html] view plain copy [html] view plain copy live事件Jq把al 阅读全文
posted @ 2017-02-28 10:04
疯子110
阅读(408)
评论(0)
推荐(0)
摘要:
JQuery中live()、delegate()、on()事件都能给新增元素绑定事件,原理就是用了事件委托。 实例: 给id为div的元素绑定一个click委托,如果冒泡上来的元素是P元素就会执行alert("xxx"); [html] view plain copy <!DOCTYPE html> 阅读全文
posted @ 2017-02-28 10:02
疯子110
阅读(699)
评论(0)
推荐(0)
摘要:
getdate(4292488) 使用方法传入目标时间与当前时间差(时间戳) [html] view plain copy function getdate(period) { var yearLevelValue = 365 * 24 * 60 * 60 * 1000; var monthLeve 阅读全文
posted @ 2017-02-28 10:01
疯子110
阅读(303)
评论(0)
推荐(0)
摘要:
<!DOCTYPE HTML> <html> <head> <meta charset=UTF-8> <title>SCROLL</title> <style type="text/css"> </style> <script type="text/javascript"> var goToWher 阅读全文
posted @ 2017-02-28 09:59
疯子110
阅读(1603)
评论(0)
推荐(0)
摘要:
在地址栏输入 [html] view plain copy data:text/html,<h1 style='color:red' >Hello, world!</h1> [html] view plain copy [html] view plain copy 浏览器会执行你的html代码,效果 阅读全文
posted @ 2017-02-28 09:58
疯子110
阅读(1730)
评论(0)
推荐(0)
摘要:
获取元素top传入即可 [html] view plain copy contentTop($("#top8").offset().top); [html] view plain copy [html] view plain copy 阅读全文
posted @ 2017-02-28 09:55
疯子110
阅读(2337)
评论(0)
推荐(0)
摘要:
IOS8.3(都可以跳转到下载页) safari可呼起APP 手机百度可呼起APP QQ不能呼起APP QQ空间可呼起APP 微信不能呼起APP IOS9.2.1(都可以跳转到下载页) safari可呼起APP,但在呼起之前会弹出提示,需要选择“open”之后才会呼起 手机百度可呼起APP QQ空间 阅读全文
posted @ 2017-02-28 09:53
疯子110
阅读(911)
评论(0)
推荐(0)
摘要:
安卓: [html] view plain copy window.AndroidWebView.方法名(参数); [html] view plain copy [html] view plain copy [html] view plain copy window.AndroidWebView.p 阅读全文
posted @ 2017-02-28 09:52
疯子110
阅读(390)
评论(0)
推荐(0)

浙公网安备 33010602011771号