Skip to content

引入

js
import { isPlate } from "grantlibs";
或;
const { isPlate } = require("grantlibs");
校验车牌号

使用

ts

isPlate(plate: string): boolean

参数

plate: string

返回

boolean: 是否正确

示例

js
const plate = "京JB1295";
const res = isPlate(plate);
// => true