js 禁用F12开发者工具

js 禁用F12开发者工具

// 原版setInterval(function() { check()}, 4000);var check = function() { function doCheck(a) {if (("" + a/a)["length"] !== 1 || a % 20 === 0) { (function() {} ["constru...

前端 2024-10-01 PM 126次 0条
js过滤特殊字符

js过滤特殊字符

// 过滤所有特殊字符 var stripscript = function(s) { var pattern = new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?↵\r\n]"); var rs = ""...

前端 2023-04-13 PM 1266次 0条
js 调用edge浏览器 read aloud 功能

js 调用edge浏览器 read aloud 功能

<script> const voices = speechSynthesis.getVoices() function speakbyvoice(text, voice) { var utter = new SpeechSynthesisUtterance(text) for (let v of voices) { if (v.name.inc...

前端 2023-04-11 PM 906次 0条
JavaScript调用ChatGPT API

JavaScript调用ChatGPT API

<!doctype html> <html class="no-js" lang=""> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" con...

前端 2023-04-03 AM 735次 0条
网页两侧显示新年吉祥物代码

网页两侧显示新年吉祥物代码

<style> @media screen and (max-width:970px){.d-box1{display:none}.dengl .d-box{right:0;top:-40px;transform:scale(.4)}}.dengl{position:fixed;z-index:999999;pointer-events:none}.d-box{position:...

前端 2023-04-01 AM 656次 0条
js 录音文本报价计算

js 录音文本报价计算

<div class="pc div1"> 您的内容包含: 数字:<span class="js-spn">0</span>个 英文:<span class="...

前端 2023-03-11 AM 574次 0条
js过滤特殊字符

js过滤特殊字符

// 过滤所有特殊字符 var stripscript = function(s) { var pattern = new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?↵\r\n]"); var rs = ""...

前端 2023-02-25 PM 565次 0条
js调用微软TTS接口实现在线朗读文章内容

js调用微软TTS接口实现在线朗读文章内容

<script src="http://101.35.26.18:88/static/js/jquery-3.2.1.min.js"></script> <body ontouchstart id="totop"> <div class="container grid-sm cr...

前端 2022-03-29 PM 912次 0条
jquery getJSON 请求数据并显示

jquery getJSON 请求数据并显示

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>jQuery jQuery click() 事件</title> <script src="https://cdn.staticfile.org/jquery/1.1...

前端 2021-12-26 PM 1637次 0条
JS过滤字符函数

JS过滤字符函数

//JS过滤字符function filterstr(str) {var msg = str.replace(/投票/g, ''); msg = msg.replace(/toupiao/, ''); msg = msg.replace(/刷票/ig, ''); msg = msg.replace(/微信/ig, ''); msg = msg.replace(/vx/ig, ''); msg...

前端 2021-11-28 PM 1677次 0条
如何在你的网站上加上IPV6检测功能

如何在你的网站上加上IPV6检测功能

直接贴代码,此代码依赖jQuery<span id="ipv6-span" style="color:red;">你的网络不支持IPV6</span> <br> <span id="ipv4-span" style="color:red;">你的网络不支持IPV4&...

前端 2021-11-12 PM 2107次 0条