摘要: 前端网页打印插件print.js https://github.com/lemoncool/print-demo 阅读全文
posted @ 2023-01-04 17:20 日升月恒 阅读(34) 评论(0) 推荐(0)
摘要: export const toNewFixed = (num, digit = 2) => { const multiplePow = Math.pow(10, digit); // 多乘一位防止相乘后有小数点导致精度丢失,如:17.865 return Math.round((num * (mul 阅读全文
posted @ 2023-01-04 15:32 日升月恒 阅读(56) 评论(0) 推荐(0)
摘要: HTML部分 <div class="paste-content" v-if="uploadConfig.pasteUpload && uploadConfig.fileList.length < uploadConfig.limit"> <div contenteditable="true" re 阅读全文
posted @ 2022-09-16 10:02 日升月恒 阅读(366) 评论(0) 推荐(0)
摘要: <template> <el-input :model-value="displayValue" placeholder="请输入" :max="maxNumber" :min="minNumber" @input="handleInput" @change="handleInputChange" 阅读全文
posted @ 2022-08-25 16:49 日升月恒 阅读(183) 评论(0) 推荐(0)
摘要: /** * 1.子组件 child.js */ import React, { Component } from 'react' export default class Child extends Component { constructor(props) { super(props) this 阅读全文
posted @ 2021-03-16 09:54 日升月恒 阅读(178) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>手机号码加空格</title> </head> <body> <input type="text" id=txt maxlength="13"> <p id="ph"></p> < 阅读全文
posted @ 2021-01-18 16:33 日升月恒 阅读(136) 评论(0) 推荐(0)
摘要: npm install ip -D const ip = require('ip') devServer: { port: 8082, host: ip.address(), // host: 'localhost', proxy: { '/api': { target: 'https://test 阅读全文
posted @ 2020-12-31 15:53 日升月恒 阅读(291) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="icon" 阅读全文
posted @ 2020-12-28 11:45 日升月恒 阅读(265) 评论(0) 推荐(0)
摘要: import React from 'react'; import {createPortal} from 'react-dom'; export default class BodyPopupMask extends React.Component { constructor(props) { s 阅读全文
posted @ 2020-12-25 16:59 日升月恒 阅读(1126) 评论(0) 推荐(0)
摘要: import React, { Component, Fragment } from 'react' import { Button, Modal, Form, message, Upload } from 'antd' const FormItem = Form.Item export defau 阅读全文
posted @ 2020-12-24 16:58 日升月恒 阅读(1412) 评论(0) 推荐(0)