onInput = ({ detail }) => { const value = detail.value; // 输入的字符串 const newValue = value.replace(/([^0-9])/g, ''); // 只允许输入数字 const formatValue = newV... ...
分类:
其他好文 时间:
2019-09-03 11:47:07
阅读次数:
84
Given a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English. Input Specificat ...
分类:
其他好文 时间:
2019-09-02 23:26:46
阅读次数:
107
1. 更新yum源 CentOS7默认yum源的PostgreSQL版本过低,不适合在本版本上使用。在上找到适合CentOS7的RPM源,复制其url地址,使用yum安装。 同时安装epel(Extra Packages for Enterprise Linux 7),为了稳定性,CentOS7的默 ...
分类:
数据库 时间:
2019-09-01 17:02:38
阅读次数:
300
kafka入门经典教程,参考网址见: https://www.aboutyun.com//forum.php/?mod=viewthread&tid=12882&extra=page%3D1&page=1&http:/czj4451.iteye.com/blog/2041096 ...
分类:
其他好文 时间:
2019-08-31 19:02:24
阅读次数:
56
Apache虚拟主机配置及解析 1.修改httpd-vhosts.conf 打开apache(Apache24)/conf/extra/httpd-vhosts.conf文件,添加虚拟主机信息,可以这只不同的域名指向不同的文件目录 <Directory /> 根目录(以下是对根目录的限制)Optio ...
分类:
Web程序 时间:
2019-08-28 11:02:41
阅读次数:
76
Given a linked list, swap every two adjacent nodes and return its head. Example: Note: Your algorithm should use only constant extra space. You may no ...
分类:
其他好文 时间:
2019-08-27 01:15:11
阅读次数:
127
Django的性能优化 一,利用标准数据库优化技术 传统数据库优化技术博大精深,不同的数据库有不同的优化技巧,但重心还是有规则的。在这里算是题外话,挑两点通用的说说: 索引,给关键的字段添加索引,性能能更上一层楼,如给表的关联字段,搜索频率高的字段加上索引等。Django建立实体的时候,支持给字段添 ...
分类:
其他好文 时间:
2019-08-24 17:09:41
阅读次数:
81
E:\Visual Studio 2015\install\VC>E:\Visual Studio 2015\install\VC>E:\Visual Studio 2015\install\VC>E:\Visual Studio 2015\install\VC>E:\Visual Studio 2 ...
分类:
其他好文 时间:
2019-08-23 13:11:45
阅读次数:
80
可以在多个路径下找到pip.conf,没有则创建, 另外,还可以通过环境变量PIP_CONFIG_FILE来指定配置文件的路径。 Linux: /etc/pip.conf ~/.pip/pip.conf ~/.config/pip/pip.conf Windows: %APPDATA%\pip\pi ...
分类:
其他好文 时间:
2019-08-22 23:37:34
阅读次数:
118
Given a sorted array nums, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra spa ...
分类:
其他好文 时间:
2019-08-19 21:07:09
阅读次数:
74