/** 打印js函数 */
function print() {
var newWin = window.open('', '_block', '');
newWin.document.write("<head><title>"+ $('.aqjd-body .context table').data('name')
+"</title><style>#print-content{font-size:14px}</style></head>");
newWin.document.write( $('.aqjd-body .context').html());
newWin.print();
function print() {
var newWin = window.open('', '_block', '');
newWin.document.write("<head><title>"+ $('.aqjd-body .context table').data('name')
+"</title><style>#print-content{font-size:14px}</style></head>");
newWin.document.write( $('.aqjd-body .context').html());
newWin.print();
}
标红的出入的页面数据
------------------------------------------------------------------------
button添加超链接
< button onclick = "location.href='../add'" class = "btn" >添加</ button > |
< button onclick = "location.href='../del'" class = "btn" >删除</ button > |
< button onclick = "location.href='../edit'" class = "btn" >修改</ button > |
< button onclick = "location.href='../query'" class = "btn" >查询</ button > |