越努力越快乐

  • 首页
  • 前端开发
    • VUE
    • JS代码块
    • react
    • IE兼容
    • echarts
    • 小程序
      • uni-app
    • IVIEW
    • 移动端
    • Element UI
    • 微前端
    • 业务设计思路
    • HTML
    • CSS
  • VUE
  • 后端开发
    • node
    • JAVA
  • 建站技巧
    • linux
    • nginx
    • docker
  • 技术杂谈
    • 电脑技巧
  • 工具大全
  • 友链

分类

与『JS代码块』相关的内容

function versions(params) { var u = navigator.userAgent; return { trident: u.indexOf('Triden...

【JS】判断设备是不是移动端或者其他设备

3年前 (2022-08-18) 901 0
var str = "https://www.baidu.com/";var reg = /^http(s|):\/\/\S*?\//var domainName = str.match(reg...

【JS】正则表达式获取url中的域名

3年前 (2022-08-18) 650 0
html 转义加密解密html加密let htmlEscape = function html2Escape(str) { return str.replace(/[<&...

置顶 · 【JS】数据处理方法块

3年前 (2022-07-11) 1.1K 0
eval('[[1,4,5],[23,54,75],[45,67,8]]')

【JS】将字符串的数组转为正常的数据'[[1,4,5],[23,54,75],[45,67,8]]’

3年前 (2022-07-01) 680 0
document.location.host //表示当前域名 + 端口号document.location.hostname //表示域名document.lo...

【JS】判断当前协议是http还是https

3年前 (2022-04-28) 688 0
html加密let htmlEscape = function html2Escape(str) { return str.replace(/[<>&"]/g, fun...

【JS】html 转义加密解密

3年前 (2022-02-18) 759 0
情况:let num = 409600;let total = 433927;let percentData = (num / total).toFixed(3) * 100;consol...

【JS】toFixed方法设置小数点位数后再进行计算,数据出错问题

3年前 (2022-02-16) 780 0
 encodeURIComponent() 对 URI 进行编码var uri="https://www.test.com/test?name=test&car=car";//...

【JS】decodeURIComponent()和encodeURIComponent()

3年前 (2022-02-15) 708 0
export导出:export let str = “hello”;export function myFun(){};导入:import { str, myFun } from ...

【ES6】export及export default的区别

3年前 (2022-02-11) 629 0
function conver(limit){ var size = ""; if(limit === 0) return '0MB' return (limit / (10...

【JS】单位B大小转化MB的转化方法

3年前 (2022-01-07) 786 0
startsWith() 方法var str = "Hello world, welcome to the Runoob."; var n = str.startsWith("Hello")...

【JS】查看字符串是否为 “Hello” 开头

3年前 (2022-01-07) 752 0
function copyText(content){ if(content){ const input = document.createElement('input') ...

【JS】复制文字

3年前 (2021-12-10) 771 0
  1. 1
  2. 2
  3. 3
  4. 4
  5. →
  6. 1 / 4
粤ICP备18113783号-1 Copyright © ynlykl.com

100