var str = 'node.js'; var fs = require('fs'); fs.writeFile('./a.txt',str,function(err){ if(err==null){ console.log('恭喜你,写入成功') }else{ console.log(err); ...
分类:
Web程序 时间:
2021-03-02 11:49:45
阅读次数:
0
问题 请实现 copyRandomList 函数,复制一个复杂链表。在复杂链表中,每个节点除了有一个 next 指针指向下一个节点,还有一个 random 指针指向链表中的任意节点或者 null。 // Definition for a Node. class Node { public: int ...
分类:
其他好文 时间:
2021-03-01 13:48:04
阅读次数:
0
查看数据表的信息,只能算是优化用户体验 --用户表 if exists(select * from sysobjects where name = 'bi_user') drop table bi_user create table bi_user ( user_id int not null pr ...
分类:
其他好文 时间:
2021-03-01 13:44:56
阅读次数:
0
模块化结合typescript - 泛型改造 // 为函数添加泛型 function useURLLoader<T>(url: string) { const result = ref<T | null>(null) // 在应用中的使用,可以定义不同的数据类型 interface DogResul ...
分类:
其他好文 时间:
2021-03-01 13:32:50
阅读次数:
0
最左匹配原则 DROP TABLE IF EXISTS employees; CREATE TABLE employees( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(24) NOT NULL DEFAULT '' COMMENT '姓 ...
分类:
数据库 时间:
2021-02-27 13:21:23
阅读次数:
0
BodyAnim无法挂载,将 @property({ type: Animation }) public BodyAnim: Animation|null = null; 换成 @property({ type: AnimationComponent }) public BodyAnim: Anim ...
分类:
其他好文 时间:
2021-02-27 13:18:11
阅读次数:
0
题目要求 写一个shell脚本,把192.168.0.0/24网段在线的ip列出来。 参考答案 #!/bin/bash for i in `seq 1 254` do if ping -c 2 -W 2 192.168.0.$i >/dev/null 2>/dev/null then echo "1 ...
分类:
其他好文 时间:
2021-02-27 12:59:19
阅读次数:
0
问题记录 在完成项目的过程中,遇到了这样一个问题:读取application.yml信息时,报空指针异常。 application.yml配置如下: #Cacheable 注解默认生存时间(秒)cacheable: redis: ttl: 3600 在自定义的 PropertiesUtil类中,进行 ...
分类:
移动开发 时间:
2021-02-27 12:57:22
阅读次数:
0
快慢指针技巧汇总 双指针技巧可以分为两类:一类是【快慢指针】、一类是【左右指针】 一、快慢指针 快慢指针一般初始化指向链表头结点head,前进时快指针fast在前,慢指针slow在后,巧妙解决链表中的一些问题。 1、判断链表中是否有环 经典解法就是用两个指针,一个每次前进两步,一个每次前进一步。如果 ...
分类:
其他好文 时间:
2021-02-26 13:25:46
阅读次数:
0
Druid出现DruidDataSource - recyle error - recyle error java.lang.InterruptedException: null异常排查与解决 Druid出现DruidDataSource - recyle error - recyle error ...
分类:
编程语言 时间:
2021-02-26 13:23:10
阅读次数:
0