js开发笔记

jQuery

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

AJAX

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

标签

判断checkbox是否被选中:

document.getElementById('id').checked

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

原文地址:https://www.cnblogs.com/guiguixyz/p/6079165.html