2019-04-06 03:35:00 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="en">
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
|
<title>okutils测试</title>
|
|
|
|
|
<script src="js/okutils.js"></script>
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
2019-05-12 06:48:19 +00:00
|
|
|
console.log("当前时间格式化:", dateUtil.dateFormat(new Date(), "yyyy-MM-dd hh:mm:ss"))
|
|
|
|
|
|
|
|
|
|
console.log("判断字符串是否为空:", strUtil.isEmpty(""));
|
|
|
|
|
console.log("判断两个字符串是否相同:", strUtil.isEquals("abc", "abc"));
|
|
|
|
|
console.log("忽略大小写判断字符串是否相同:", strUtil.isEqualsIgnoreCase("abc", "Abc"));
|
|
|
|
|
console.log("判断是否是数字:", strUtil.isNum("123"));
|
|
|
|
|
console.log("判断是否是中文:", strUtil.isChinese("xxx你好"));
|
2019-04-06 03:35:00 +00:00
|
|
|
</script>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|