摘要:
accAdd(m) { /** * m=[0.55,0.584] * 先声明俩临时变量 * temp 临时 sum 合 Integer 整数 Decimal 小数 * 也就是声明了两个临时变量 一个是求和整数 一个是求和小数 * 注意这俩变量的类型 是 bigint * 科普时间到 * bigint
阅读全文
posted @ 2022-01-21 20:35
Charonっ
阅读(104)
推荐(0)
摘要:
//判断系统类型function OSnow(){ var agent = navigator.userAgent.toLowerCase(); var isMac = /macintosh|mac os x/i.test(navigator.userAgent); if (agent.indexO
阅读全文
posted @ 2021-09-05 16:41
Charonっ
阅读(326)
推荐(0)
摘要:
let winOri = window.location.origin; let _url = winOri + `/pdtz/sxbl/sl/bItemAcceptAttachment_downloadZipByAcceptId?acceptId=${this.formId}`; fetch(_u
阅读全文
posted @ 2021-08-27 16:28
Charonっ
阅读(412)
推荐(0)
摘要:
mounted(){ //监听鼠标滚动事件 window.addEventListener('mousewheel',this.handleScroll); }, handleScroll(m){ console.log(m.deltaY) }
阅读全文
posted @ 2021-07-22 09:48
Charonっ
阅读(579)
推荐(0)
摘要:
官方文档Axios 是一个基于 promise 的 HTTP 库,可以用在浏览器和 node.js 中。简单来说就是前端最火最简单的一个http请求解决方案。 2、安装 npm install vuex --save 3、功能 从浏览器中创建 XMLHttpRequests 从 node.js 创建
阅读全文
posted @ 2021-03-13 10:59
Charonっ
阅读(67)
推荐(0)
摘要:
1.需求 input focus下出现下拉框,选中选项后 值绑定给field 2.html部分 圆圈处是控制底部抽屉是否显示 3.data和methods部分
阅读全文
posted @ 2021-02-25 16:11
Charonっ
阅读(2088)
推荐(0)
摘要:
mounted() { this.getClassify() window.addEventListener('scroll', this.handleScroll, true); }, methods: { //检测滚轴 handleScroll () { let clientHeight = d
阅读全文
posted @ 2020-11-11 15:03
Charonっ
阅读(71)
推荐(0)
摘要:
当一个页面使用了iframe作为嵌套时,如何想要将父页面的数据传给iframe子页面,那iframe所指向的呢个子页面是怎么获取呢,又或者子页面的数据要给父页面使用,那么父页面又如何获取子页面的数据呢?下面根据这种情况作了一个简单的demo案例: 父页面是parentPage.html,子页面是ch
阅读全文
posted @ 2020-10-20 10:29
Charonっ
阅读(228)
推荐(0)
摘要:
mounted() { // 如果支持 popstate (一般移动端都支持) if (window.history && window.history.pushState) { // 往历史记录里面添加一条新的当前页面的url history.pushState(null, null, docum
阅读全文
posted @ 2020-09-30 17:26
Charonっ
阅读(671)
推荐(0)
摘要:
代码如下: <el-input v-model="famount" placeholder="请输入内容" @keyup.native="number"></el-input> methods:{ number(){ this.famount=this.famount.replace(/[^\.\d
阅读全文
posted @ 2020-09-28 17:48
Charonっ
阅读(4751)
推荐(0)