js常用库。兼容NodeJS和JavaScript
var SplString = require('./SplString'); var ip = SplString.hex2ip("C0A80A16");
<script src="./SplString.js"></script> <script> var ip = SplString.hex2ip('C0A80A16'); </script>
import SplString from "./SplString.js"; var ip = SplString.hex2ip('C0A80A16');
模拟tap事件,代替onclick