摘要: 利用Jquery选择器,计算table中的某一列,某一行的合计,非常方便。下面以计算行合计为例: 核心算法: $('#tableId tr').each(function() { $(this).find('td:eq(columnIndex)').each(function() { totalAm 阅读全文
posted @ 2018-08-22 17:37 飞蚊 阅读(5496) 评论(0) 推荐(0) 编辑
摘要: <!doctype html> <!doctype html> <html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <head> <meta http-equiv 阅读全文
posted @ 2018-08-22 17:32 飞蚊 阅读(1477) 评论(0) 推荐(0) 编辑
摘要: <html> <head> </head> <body> <input type="text" name="mss" id="mss"/> <form action="./index.html"> <input type="text" value="name" name="name"/> </for 阅读全文
posted @ 2018-08-22 17:30 飞蚊 阅读(3832) 评论(0) 推荐(0) 编辑
摘要: FreeMarker的插值有如下两种类型:1,通用插值${expr};2,数字格式化插值:#{expr}或#{expr;format} ${book.name?if_exists } //用于判断如果存在,就输出这个值 ${book.name?default(‘xxx’)}//默认值xxx ${bo 阅读全文
posted @ 2018-08-22 17:29 飞蚊 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 前台修改 "aTargets": [2], "mData": null, "mRender": function (data, type, full) { var content = full.content; var s = content.replace(/<img [^>]*src=['"]( 阅读全文
posted @ 2018-08-22 17:05 飞蚊 阅读(238) 评论(0) 推荐(0) 编辑