一、functional pattern 测试覆盖率不够,用functional pattern做为补充。 functional pattern保存在EVCD文件里: TEST-T> set_patterns -external -strobe .. filename.evcd 怎么生成EVCD文件 ...
分类:
其他好文 时间:
2021-01-11 11:05:53
阅读次数:
0
JDK的String类有一个intern方法: public native String intern(); 方法的注释: /** * Returns a canonical representation for the string object. * <p> * A pool of string ...
分类:
其他好文 时间:
2021-01-11 10:45:52
阅读次数:
0
单元测试检查点: @RunWith(SpringRunner.class) @SpringBootTest @Autowired @Test @Transactional @RunWith(SpringRunner.class) @SpringBootTest public class Test { ...
分类:
编程语言 时间:
2021-01-08 11:42:01
阅读次数:
0
abstract的method 不可以是static的,因为抽象的方法是要被子类实现的,而static与子类扯不上关系! native方法表示该方法要用另外一种依赖平台的编程语言实现的,不存在着被子类实现的问题,所以,它也不能是抽象的,不能与abstract混用。例如,FileOutputSteam ...
分类:
其他好文 时间:
2021-01-08 11:35:27
阅读次数:
0
自定义组件 第一步,定义组件 /*方式1: 工厂函数组件(简单组件:没有状态)*/ function MyComponent () { return <h2>工厂函数组件(简单组件)</h2> } /*方式2: ES6类组件(复杂组件)*/ class MyComponent2 extends Re ...
分类:
其他好文 时间:
2021-01-08 11:16:13
阅读次数:
0
React的生命周期从广义上分为三个阶段:挂载、渲染、卸载 挂载卸载过程 1.1.constructor() 1.2.componentWillMount() 1.3.componentDidMount() 1.4.componentWillUnmount () 更新过程 2.1. componen ...
分类:
其他好文 时间:
2021-01-07 12:35:36
阅读次数:
0
1.Kubenets与minikube简介 Kubernetes(常简称为K8s)是用于自动部署、扩展和管理「容器化(containerized)应用程序」的开源系统。该系统由Google设计并捐赠给Cloud Native Computing Foundation(今属Linux基金会)来使用。它 ...
分类:
Web程序 时间:
2021-01-07 12:32:30
阅读次数:
0
在本文中,我将展示如何使用Node.js、Puppeteer、headlessChrome和Docker从样式复杂的React页面生成PDF文档。 ###背景: 几个月前,一个客户要求我们开发一个功能,用户可以得到PDF格式的React页面内容。该页面基本上是患者病例的报告和数据可视化结果,其中包含 ...
分类:
Web程序 时间:
2021-01-07 12:13:37
阅读次数:
0
提示:Unable to start adb server: error: protocol fault (couldn't read status): Connection reset by peer问题原因:大多数情况是5037端口被占用。5037为adb默认端口。解决办法:查看哪个程序占用了a ...
分类:
其他好文 时间:
2021-01-06 12:06:11
阅读次数:
0
前端页面在根目录下的文件夹pages=》index=》index.vue 接口统一在根目录下的文件夹api=》index(自己模块归类文件夹里)=》... 前端页面代码: 引入统一的接口文件 import { getAds, getData } from '../../api/index/index ...
分类:
移动开发 时间:
2021-01-06 12:04:42
阅读次数:
0