上一页 1 2 3 4 5 6 7 8 ··· 30 下一页
摘要: 实现效果 代码 tableData为Table的数据 const mergeCells = (text, dataSource, index, key) => { // 上一行该列数据是否一样 if (index !== 0 && text dataSource[index - 1][key]) { 阅读全文
posted @ 2024-02-21 13:16 ZerlinM 阅读(259) 评论(2) 推荐(0)
摘要: 将jadx压缩包解压后,双击如下红框中的文件: 然后将apk文件拖进去,等待几秒后,如下图中可查看md5等信息: 点开“资源文件”,如下图,则是包名: 附: jadx下载地址 提取码 etnk 阅读全文
posted @ 2024-01-12 15:31 ZerlinM 阅读(746) 评论(0) 推荐(0)
摘要: 实现效果: 页面: 导出的excel: xlsx.core.min.js文件下载地址 xlsx 代码如下: <!DOCTYPE html> <html> <head> <title>HTML Template</title> <style> table { border-collapse: coll 阅读全文
posted @ 2024-01-12 14:48 ZerlinM 阅读(281) 评论(0) 推荐(0)
摘要: antd Form表单校验必填项等,如果按钮不是使用 htmlType="submit",那么可以使用validateFields来校验数据。 代码如下: try { await form.validateFields(); // 校验数据 } catch (e) { console.log('e' 阅读全文
posted @ 2023-12-20 14:51 ZerlinM 阅读(224) 评论(0) 推荐(0)
摘要: 实现效果 使用antd中的Table,设置固定列宽,当文字超出时省略,先看实现效果: 方法一 部分代码 使用ellipsis进行省略,使用Tooltip(引入自antd)展示全部的内容。 const TABLE_COL_WIDTH = 200; const columns = [ { title: 阅读全文
posted @ 2023-12-15 13:26 ZerlinM 阅读(1098) 评论(0) 推荐(0)
摘要: 首先在app.config.json中配置 requiredBackgroundModes: [ 'location' ], requiredPrivateInfos: [ 'getLocation', 'onLocationChange', 'startLocationUpdate', ], pe 阅读全文
posted @ 2023-12-13 15:28 ZerlinM 阅读(605) 评论(0) 推荐(0)
摘要: 问题 使用了react-native-webview的WebView嵌套h5页面,但是当h5发版之后,重新打开app,h5还是发版前的页面。 并且这个缓存严重,每次都要清理缓存或者重装app,页面不能及时更新,影响用户体验。 解决 rn项目中,在h5链接后边拼接时间戳,代码如下: 注意:这里缓存使用 阅读全文
posted @ 2023-12-13 14:44 ZerlinM 阅读(250) 评论(0) 推荐(0)
摘要: 高德地图 WGS84转GCJ02 export function wgs84ToGcj02(lng, lat) { if (out_of_china(lng, lat)) { return [lng, lat] } else { var dlat = transformlat(lng - 105.0 阅读全文
posted @ 2023-12-08 10:27 ZerlinM 阅读(728) 评论(0) 推荐(0)
摘要: 代码如下: import ReactDOM from 'react-dom'; import { Spin } from 'antd'; export const showGlobalLoading = () => { const dom = document.createElement('div' 阅读全文
posted @ 2023-12-01 15:56 ZerlinM 阅读(420) 评论(0) 推荐(0)
摘要: ReactDOM.createPortal(child, container) Portal 将提供一种将子节点渲染到 DOM 节点中的方式,该节点存在于 DOM 组件的层次结构之外。 因此 Portals 适合脱离文档流(out of flow) 的组件,特别是 position: absolut 阅读全文
posted @ 2023-11-17 15:22 ZerlinM 阅读(304) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 30 下一页