js开发笔记

jQuery

jQuery判断页面元素是否存在:$("#someID").length > 0

 

AJAX

通过设置window.location.hash值和响应window的onhashchange事件实现ajax支持浏览器导航

 

标签

判断checkbox是否被选中:

document.getElementById('id').checked

$('#id').is(':checked')

 

posted @ 2016-11-18 21:18  鬼鬼17F  阅读(141)  评论(0编辑  收藏  举报