摘要: 打印某个标签内的内容:function customPrint( contentContainerId ){ var contentContainer=document.getElementById(contentContainerId); var winEx = window.open("about:blank","", "height=10,width=10",""); winEx.docu... 阅读全文
posted @ 2010-04-09 09:42 liangzi.net 阅读(197) 评论(0) 推荐(0)
摘要: example:window.open("","name1","width=100,height=200,toolbar=no,scrollbars=no,menubar=no,screenX=100,screenY=100");showModalDialogexample:window.showModalDialog("my.htm",obj,"dialogWidth=200px;dialogH... 阅读全文
posted @ 2010-04-09 09:38 liangzi.net 阅读(222) 评论(0) 推荐(0)
摘要: 日期格式化函数(摘自互联网):Date.prototype.format = function(format){ var o = { "M+" : this.getMonth()+1, //month "d+" : this.getDate(), //day "h+" : this.getHours(), //hour "m+" : this.getMinutes(), //minute "s+"... 阅读全文
posted @ 2010-04-09 08:59 liangzi.net 阅读(98) 评论(0) 推荐(0)