hn-validation

车牌号码校验

Usage no npm install needed!

<script type="module">
  import hnValidation from 'https://cdn.skypack.dev/hn-validation';
</script>

README

好牛检验

支持的查询

validationCarNumber:验证不同省份车牌,其中省份简称后面若是领或使车牌,不检验车牌

安装

$ npm i hn-inspection -save

npm引入

import hnInspection from "hn-inspection"; //或 const hnInspection require("hn-inspection");

使用

validationCarNumber(),返回Boolean值

直接引入

<html>
...
<script src="https://minibull.howbull.com/hn-inspection.js"></script>
<body>
...
<script>
let carNumber = "粤A6H5B0";
validationCarNumber(carNumber);//验证车牌,返回Boolean值
</script>
</body>
</html>