• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
you1you
博客园 首页 新随笔 管理

随笔分类 -  js

 
水波效果
摘要:.download-app { position: fixed; bottom: 0; left: 0; z-index: 20; color: #fff; font-size: 24px; overflow: hidden; width: 100%; height: 84px; background: url("../../../../assets/images/base/wave_bg.png 阅读全文
posted @ 2019-10-17 16:30 you1you
vue 换肤
摘要:/* eslint-disable */ // 设置文件 import setting from "@/setting.js"; const themeList = setting.theme.list; export default { namespaced: true, state: { // 主题 list: themeList, // 现在激活的主题 这应该是一个名字 不是对象 activ 阅读全文
posted @ 2019-10-14 21:35 you1you
websocket vue
摘要:/* eslint-disable */ let tt; let count = 1; let lockReconnect = false; function isJsonString(str) { try { if (typeof JSON.parse(str) === "object") { return true; } } catch (e) { } ... 阅读全文
posted @ 2019-10-14 21:30 you1you
axios配置
摘要:import axios, { isCancel } from 'axios' import { md5 } from 'vux' import util from '@/libs/util' import store from '../../store' // 创建一个错误 function errorCreate (e) { let err if (typeof e 'string') { e 阅读全文
posted @ 2019-10-09 14:01 you1you
webpack权限控制
摘要:const type= "a"; const menusConfig = { a: ["activity"], b: ["activity", "theme", "chessGame"], //mutiIdentity "c": ["activity"], d: ["activity", "theme"], f: ["activity"], g: ["activity"... 阅读全文
posted @ 2019-10-08 13:23 you1you
动画效果
摘要:/* eslint-disable semi */ let animationId = 0; let fnAnimation = null; let Container = null; let Balls = []; export function clearBallScreen () { setTimeout(() => { for (let i = 0; i R) { ... 阅读全文
posted @ 2019-10-05 13:34 you1you
策略模式
摘要:参考: https://www.cnblogs.com/kongxianghai/p/4985122.html 阅读全文
posted @ 2017-12-28 10:56 you1you
kai zhou h
该文被密码保护。
posted @ 2017-12-25 09:40 you1you
在页面上 获取键盘事件
摘要:需要用原生才行, jquery无效 function showkey(event){ asc = event.keyCode; key = String.fromCharCode(asc); str += key; console.log(str) } document.onkeypress=sho 阅读全文
posted @ 2017-08-17 13:56 you1you
json to xml
摘要:jquery xml to json 阅读全文
posted @ 2017-08-15 11:06 you1you
正则表达式优化
摘要:这里说的正则表达式优化,主要是针对目前常用的NFA模式正则表达式, 详细可以参考:正则表达式匹配解析过程探讨分析(正则表达式匹配原理)。 从上面例子,我们可以推断出,影响NFA类正则表达式 (常见语言:GNU Emacs,Java,ergp,less,more,.NET语言, PCRE librar 阅读全文
posted @ 2017-05-23 13:41 you1you
理解模板引擎
摘要:链接 主要两点: 1.用with 保证页面可以直接写属性 2.用new Function 保证把 模板字符串 转换 成带有 js操作的字符串, 这个字符串因为 new Function 会当做js执行, 最后返回结果 阅读全文
posted @ 2017-04-27 15:13 you1you
 


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3