map 同 Swift中 map 用法一样,对值进行处理并返回 let sub = PublishSubject<String>() sub.map { $0 + "mmmmm" } .subscribe { event in print(event.element) } .disposed(by: ...
分类:
编程语言 时间:
2020-11-25 12:36:31
阅读次数:
4
此博客链接: 字符串相加 题目链接:https://leetcode-cn.com/problems/add-strings/ 题目 给定两个字符串形式的非负整数 num1 和num2 ,计算它们的和。 提示: num1 和num2 的长度都小于 5100num1 和num2 都只包含数字 0-9n ...
分类:
其他好文 时间:
2020-11-25 12:07:41
阅读次数:
23
# cat check_gitlab_bak.sh #!/bin/sh source /etc/profile # 定义邮件发送列表 maillist=( zise@feizhu.com ) # 发送邮件函数 send_mail(){ for mail in ${maillist[*]}; do e ...
分类:
其他好文 时间:
2020-11-24 12:46:56
阅读次数:
8
uploadFile(event){ let that = this; let file = event.target.files[0]; let fileReader = new FileReader(); fileReader.readAsDataURL(file); //根据图片路径读取图片 ...
分类:
其他好文 时间:
2020-11-24 12:09:24
阅读次数:
5
BigDecimal bigNum1 = new BigDecimal("10"); BigDecimal bigNum2 = new BigDecimal("5"); BigDecimal bigNum3; //加法 bigNum3 = bigNum1.add(bigNum2); System.o ...
分类:
其他好文 时间:
2020-11-23 12:40:40
阅读次数:
16
一、activiti的监听器分为:全局监听、连线监听、节点监听。 1、节点监听 <userTask id="myTask" name="My Task" > <extensionElements> <activiti:taskListener event="create" class="org.ac ...
分类:
其他好文 时间:
2020-11-21 12:48:08
阅读次数:
33
我知道2种方式: 1.在标签内 使用 ref 属性定义对象名,使用this.$refs.【name】 调用 2.在标签内 使用 函数传递事件对象, 定义, <div @click="handleFunc($event)" ></div> 使用, <script> function handleFun ...
分类:
其他好文 时间:
2020-11-20 12:16:53
阅读次数:
30
v-show不能在<template>上使用 <button v-on:click="warn('Form cannot be submitted yet.', $event)">Submit</button> // ... methods: { warn: function (message, e ...
分类:
Web程序 时间:
2020-11-20 11:58:10
阅读次数:
15
//将圆弧看成一段段的直线段,每个单元时间为dt //每一段路径长为 v1dt 和 v2dt //对于v2来说,存在径向速度vx(向外) 和 切向速度vy(绕圆) (vx^2 + vy^2 = v2^2) //又v1/R = w(角速度)= vy/r (r是运动过程中离圆心的距离)r属于[0, R] ...
分类:
其他好文 时间:
2020-11-20 11:47:20
阅读次数:
4
macOS Big Sur已经发布可以下载了,当您选择升级系统的时候考虑过某些软件是否兼容吗?这里小编为大家带来了macOS 11 Big Sur正式版不支持的软件。(持续更新中) 测试环境: 支持软件 办公软件 office2019 Permute3 mindnode xmind Microsof ...
分类:
系统相关 时间:
2020-11-20 11:38:47
阅读次数:
14