码迷,mamicode.com
首页 >  
搜索关键字:js date    ( 122269个结果
实际开发中String转换为json串作为入参发生"JSON parse error:Cannot deserialize value of type Date......not a valid解决
实际开发中,String拼接成json串作为入参请求接口,发生以下错误 { "timestamp": "2018-11-09 14:55:49", "status": 400, "error": "Bad Request", "message": "JSON parse error: Cannot ...
分类:Web程序   时间:2021-01-22 12:29:29    阅读次数:0
videojs插件的参数解释
原文: 初始化 <!-- vjs-big-play-centered可使大的播放按钮居住,vjs-fluid可使视频占满容器 --> <video id="myVideo" class="video-js vjs-big-play-centered vjs-fluid"> <p class="vjs ...
分类:Web程序   时间:2021-01-22 12:28:33    阅读次数:0
js基础部分
1 - 对象 //构造函数 function obj(){ this.name = 'zhangsan', this.age = 23, this.eat = function(){ console.log('js'); } } var obj2 = new obj; console.log(obj ...
分类:Web程序   时间:2021-01-22 12:20:07    阅读次数:0
Charles安装
Charles 安装 官方下载地址 66 windows:官网下载并按照步骤一步步安装即可 Mac:官网下载并按照步骤一步步安装即可 Linux: wget -q -O - https://www.charlesproxy.com/packages/apt/PublicKey | sudo apt- ...
分类:其他好文   时间:2021-01-22 12:10:38    阅读次数:0
js发布订阅模式实现eventBus
class EventBus { constructor(){} handlerBus={} //注册 $on(eventName,handler){ if(!this.handlerBus.hasOwnProperty(eventName)){ this.handlerBus[eventName] ...
分类:Web程序   时间:2021-01-22 12:01:16    阅读次数:0
在CentOS 8/7、RHEL 8/7系统上安装Node.js 14版本的方法
1.运行Node.js安装程序脚本 下载并执行脚本: 1 2 3 $ sudo yum -y install curl $ curl -sL https://rpm.nodesource.com/setup_14.x | sudo bash - 2.在CentOS 8/7、RHEL 8/7系统上安装 ...
分类:Web程序   时间:2021-01-22 12:00:16    阅读次数:0
JS数组去重
// 演示代码 function unique(arr) { /* your code */ } let strings = ["Hare", "Krishna", "Hare", "Krishna", "Krishna", "Krishna", "Hare", "Hare", ":-O" ]; a ...
分类:编程语言   时间:2021-01-22 11:50:53    阅读次数:0
DateFormat采坑
无意发现一个dateformat的问题 DateFormat dateFormat = new SimpleDateFormat("yyyyMMddHHmmss"); Date eventDate = dateFormat.parse("2021-01-22 12:34:22"); System.o ...
分类:其他好文   时间:2021-01-22 11:45:51    阅读次数:0
js多条件判断的简写
// 非简写 let x = 'a' if (x 'a' || x 'b' || x 'c' || x 'd') { console.log(11111); } // 简写 let arr = ['a', 'b', 'c', 'd'] if (arr.includes(x)) { console.l ...
分类:Web程序   时间:2021-01-22 11:43:05    阅读次数:0
Vue.js — 列表渲染
1.列表渲染 1.1 v-for <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <style> </style> <script src="https://cdn.staticfile.org/vue/2.4.2/vue.min.js">< ...
分类:Web程序   时间:2021-01-21 10:43:28    阅读次数:0
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!