摘要:
test - 判断字符串是否符合规定的正则 rep =/\d+/; rep.test('211')#true rep =/^\d+$/ rep.test('2222ff3') #false rep.test('22223') #true exec -获取匹配的数据 req = /\d+/ str=" 阅读全文
摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> .error{ color: red; } </style> </head> <body> <form id="f1 阅读全文
摘要:
ubuntu16.04安装Grafana 1.在Grafana官网查看最新版本。 2.输入以下命令,执行安装。 wget https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana_5.1.3_amd64.deb sudo 阅读全文
摘要:
Cron表达式是一个字符串,字符串以5或6个空格隔开,分为6或7个域,每一个域代表一个含义,Cron有如下两种语法格式: Seconds Minutes Hours DayofMonth Month DayofWeek Year或Seconds Minutes Hours DayofMonth Mo 阅读全文
摘要:
1. 执行命令,完成安装 sudo apt install influxdb sudo apt install influxdb-client 2. 查看influxdb状态,q退出。设置开机启动 sudo service influxdb status //查看状态 sudo service in 阅读全文
摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> .container{ padding: 50px; border: 1px solid #dddddd; } .i 阅读全文
摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <input id="t1" type="text"/> <input id="t2" type="b 阅读全文
摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> .hide{ display: none; } .active{ background-color: brown; 阅读全文
摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> .c1{ } .hide{ display: none; } </style> </head> <body> <in 阅读全文
摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> .modal{ position: fixed; top: 50%; left: 50%; width: 500px 阅读全文