
javaScript
光影Light
Light
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
地址内中文数字转为阿拉伯数字
// 获取字符串内所有中文数字 listZNNumberFromStr(str) { if (!str) { return []; } const strArray = str.split(''); let tempStr = ''; const numbers = new Array(); const re = /^[零〇一二三四五六七八九十百千万]+$/; strArray.forEach(e => { if (re.test(e)) { .原创 2021-09-02 15:33:21 · 290 阅读 · 0 评论 -
table 转 excel 无插件
function tableToExcel(tableID, fileName) { var excelContent = $("#" + tableID).html(); var excelFile = "<html xmlns:o='urn:schemas-microsoft-com:office:office' xmlns:x='urn:schemas-microso...原创 2019-11-27 15:14:20 · 461 阅读 · 3 评论 -
ajax方法的使用包装
function ajaxPost(path,dataParame){ $.ajax({ //这是$.ajax()方法 type: "POST", url: path, //路径可以用相对路径,起点以此方法所在的jsp显示的路径为准 data: dataParame,//请求参数 ...原创 2019-09-16 14:43:09 · 360 阅读 · 0 评论