GoldenDB 保留字(关键字)检查

16 篇文章 0 订阅
1 篇文章 0 订阅

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>GoldenDB 保留字(关键字)检查</title>
    <style type="text/css">input{outline-style:none;border:1px solid #ccc;border-radius:3px;padding:13px 14px;width:620px;font-size:14px;font-weight:700;font-family:"Microsoft soft";}input:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.button{background-color:#2729df;border:2px solid #0427cb;color:#FFFFFF;text-align:center;width:80px;height:40px;font-size:22px;}.button:hover{background-color:#2d30f7;border:2px solid #0427cb;color:#FFFFFF;text-align:center;width:80px;height:40px;font-size:22px;}.maindiv{margin-left:150px;margin-right:150px;height:750px;}.tcenter{margin-top:20px;text-align:center;}.ta{float:left;margin-top:6px;text-align:center;font-size:x-large;margin-left:38%;}</style>
</head>
<body>
<div class="maindiv"><div style="margin-top:45px;text-align:center;"><H2>GoldenDB保留字(关键字)检查</H2></div><div class="tcenter"><input id="it"/>&emsp;<button class="button"onclick="select()">搜索</button></div><div id="tips"style="margin-top: 30px;"></div></div>
<script type="text/javascript">
    function select() {
        var v = "", n = "", yet = "", tf = "",inputvs="";var tip = document.getElementById('tips');var inputv = document.getElementById("it").value;
        var arr = ['', '', '', '', '', '', '', '',];
		if(inputv.length==0){tip.style.display="none";alert("请输入保留字!");return false}else{tip.style.display="block"}var reg=/^[A-Z]+$/;if(reg.test(inputv)==false){inputvs=inputv.toUpperCase()}else{inputvs=inputv}for(var t=0;t<arr.length;t++){if(arr[t]==inputvs){v="您输入的'"+inputv+"',是GoldenDB保留字。";break}}if(v.length>0){n=v;yet="√";tf="T"}else{n="您输入的'"+inputv+"',不是GoldenDB保留字。";yet="✕";tf="F"}tip.innerHTML="<a class='ta'>"+n+"</a><a id='yt' style='font-size: 32px'></a>";var yt=document.getElementById('yt');yt.innerHTML="<a>"+yet+"</a>";if(tf=="T"){yt.style.color="green"}else{yt.style.color="red"}
    }
</script>
</body>
</html>

注意:您的公司与Goldendb公司是商业合作的。请向GoldenDB公司索取技术文档。把保留字写入arr中即可使用。根据保密协议,非合作公司的暂时无法提供。谢谢您的理解。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值