InnerHTML与InnerText
InnerHTML获取元素内的HTML内容(W3C)
InnerText获取元素内的文本内容(IE)
尽量使用InnerHTML,若不需要HTML标签,正则去除replace(/<.+?>/gim,'');
Google从37开始移除showModalDialog 函数,弹出框尽量用window.open,返回值直接在子窗口window.opener.document.getElementById('父窗口控件')赋值
页面radio动态添加,jQuery("input[name='name']:checked").val();是取不到值的
var val;//radio选中的值
jQuery("father").children("input[name='name']").each(function(i){
if(jQuery(this).is(":checked")) val = jQuery(this).val();
});