JS最简单的BASE64编码解码JS-BASE64编码解码函数源码:<p id="demo"></p> <script> function base64(str,code) { if(code==0){return window.btoa(unescape(encodeURIComponent(str)));}else if(code=...
网页禁止右键和F12打开控制台禁止右键: document.oncontextmenu = new Function("return false;"); 禁止F12: document.onkeydown = document.onkeyup = document.onkeypress = function(event) { var e = event || ...
JS验证码60秒倒计时源码<input id="btn" onclick="settime(this)" type="button" value="获取验证码" style="width: 6.125rem;height: 1.875rem;margin-top: -10.25rem;float:...
<!DOCTYPE html> <html lang="en"> <head> <title>JS代码AES加解密实例</title> <meta charset="UTF-8"> <meta name="viewport" content="w...
JS倒序输出文本<script language="javascript"> var str = "www.180it.com技术博客"; document.write(str.split("").reverse().join("")); </script>
JS图片转BASE64编码<script> function image2Base64(img) { var canvas = document.createElement("canvas"); canvas.width = img.width; canvas.height = img.height; var ctx = can...
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title></title> <script> var url; ur...
<script type="text/javascript" src="//11.mydrivers.com/2018/news/jquery-1.7.2.min.js"></script> <script> function MTiaoZhuan() { var ua = w...
<script> // 跳转提示 if (is_weixn_qq()) {; window.location.href = 'https://c.pc.qq.com/middle.html?pfurl='+window.location.href; } function is_weixn_qq(){ // 判断当前...
<!DOCTYPE html> jQuery jQuery click() 事件 <script> $(document).ready(function () { $("#btn").click(function () { /* $.ajax({ ...