![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JS
qq_41315539
这个作者很懒,什么都没留下…
展开
-
前端解析.apk/.ipa资源包的基本信息
需要引入app-info-parser(组件/js文件)来实现解析apk资源的基本信息资源地址:https://github.com/chenquincy/app-info-parser一、npm方式npm install app-info-parser# or yarnyarn add app-info-parserconst AppInfoParser = require('app-info-parser')const parser = new AppInfoParser('.原创 2022-03-25 10:40:41 · 2251 阅读 · 1 评论 -
js 毫秒转成时分秒毫秒格式
// 3671520转化成00:00:00,000 =>01:01:11,520 formatTime2HMSMs = time =>{ const millisecond = parseInt(time%1000) let second = 0; let totalMinute = 0; let minute = 0; let hour = 0; let result = ".原创 2021-10-27 17:00:02 · 1663 阅读 · 2 评论 -
React 跳转方式
1、带参数跳转${res} 是参数this.props.history.push(`/flowchart/flow/${res}`)这种方式跳转是刷新当前页面跳转2、Link组件跳转<Link to={`/chat/topic/detail/${record.topicId}`} target="_blank">详情</Link>to:需要跳转到的url,target:控制是否打开新的浏览器窗口标签3、window.open(url,'_blank..原创 2020-09-25 14:59:29 · 881 阅读 · 0 评论 -
tableExport.js 前端直接导出Excel表格
情境 由于项目需要,要求导出excel表格,具体描述,从前端table标签中直接将数据导出成Excel表格。1、使用的jqGrid表格插件,可以导出筛选查询后的表格内容成Excel。2、直接用table标签,进行测试,可以把table标签内的数据导出成Excel。准备1、tableExport.js(这是修改过后的压缩包,官网下载的存现问题)链接:https:...原创 2019-03-01 17:19:55 · 3783 阅读 · 0 评论 -
解决tableExport导出Excel过程中中文乱码和没有响应的问题
代码问题描述点击导出Excel按钮,没有任何反应解决方法:1、修改tableExport.js为:(function($){ $.fn.extend({ tableExport: function(options) { var defaults = {separator: ',',ignoreColumn: [],tableN...原创 2019-03-01 17:42:24 · 8876 阅读 · 0 评论 -
table导出Excel 无插件 支持(IE)
支持主流浏览器:IE、谷歌、等直接上代码:<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <div&am原创 2019-03-01 17:51:54 · 238 阅读 · 0 评论 -
js筛选集合与查找对象
简介:在js中,查找一个数组中符合条件的一个对象(一个元素)或者筛选出一个数组中符合条件的多个对象(元素)形成的新数组。初始数据:const data = [ { id:44, puPrice:3799, buyNum:3079, }, { id:61, puPrice:2999, buyNum:60, }, { ...原创 2020-03-31 09:47:12 · 7790 阅读 · 0 评论