HTML部分:
<input type="text" id="text1" class="styled-input__input inp">
微信号:gaogaojie5
添加微信好友, 获取更多信息
复制微信号
添加微信好友, 获取更多信息
复制微信号
<button type="submit" onclick="check()" class="styled-button submit">
<span class="styled-button__real-text-holder">
<span class="styled-button__real-text">下载</span>
<span class="styled-button__moving-block face">
<span class="styled-button__text-holder">
<span class="styled-button__text">下载</span>
</span>
</span><span class="styled-button__moving-block back">
<span class="styled-button__text-holder">
<span class="styled-button__text">下载</span>
</span>
</span>
</span>
</button>
js部分:
<script type="text/javascript"> function check(){ var name = document.getElementById("text1"); if(name.value==''){ alert('卡号不能为空'); name.focus(); return flase; } else {window.location.href='{dede:global.link/}'} } </script>
转载声明:本站发布文章及版权归原作者所有,转载本站文章请注明文章来源!