This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate chrono; | |
extern crate postgres; | |
use chrono::prelude::*; | |
use postgres::{Client, NoTls}; | |
fn main() { | |
// 连接数据库 | |
let mut client = Client::connect( | |
"host=localhost user=postgres password=root dbname=Enrolled", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<v-container> | |
<v-form> | |
<v-row :no-gutters="true"> | |
<v-col cols="3"> | |
<v-text-field | |
:readonly="profile !== 'new'" | |
label="姓名" | |
variant="solo" | |
v-model="state.currentEmployee.name" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// IP-Address库使用教程配套代码 | |
// 注:由于IPv6地址不太常用,本教程只讲述IPv4的部分,IPv6部分请自行查阅相关API。 | |
import { Address4 } from "ip-address"; | |
// 初始化 | |
// 第一种:初始化IP地址和子网掩码 | |
console.log("-----Initialization-----"); | |
let address = new Address4("172.168.0.1/16"); | |
console.log( | |
`Address1: address: ${address.address}, subnet mask: ${address.subnetMask}.`, |