摘要:
$(".black-model").on('touchstart',function(e){ e.preventDefault(); }) 阻止事件冒泡 阅读全文
摘要:
-webkit-tap-highlight-color: transparent; 阅读全文
摘要:
git rm -r --cached . git add . 之后可以进行提交: git commit -m "fixed untracked files" 阅读全文
摘要:
定义:接收一个或两个参数,它可以创建一个由当前数组中的一项或多项组成的新数组,注意是新数组哦~ 也就是说它不会修改原来数组的值。 用法:slice( para1 ),会截取从para1开始的到原数组最后的部分; slice(para1,para2)会截取原数组的从para1开始的para2-para 阅读全文
摘要:
加一段js吧, <input type="number" oninput="if(value.length>6)value=value.slice(0,6)" /> 阅读全文
摘要:
bundle.js:896 [Vue warn]: Failed to mount component: template or render function not defined. Vue2.0有两种Build的方式:the standalone build and the runtime-o 阅读全文
摘要:
以前遇到过一个关于时间戳的问题,为了不被大家鄙视,先说一下概念。具体时间戳怎么定义的我也不清楚,但百度百科中有这么一句:“时间戳是自 1970 年 1 月 1 日(00:00:00 GMT)至当前时间的总秒数”。按这个定义,编程语言中倒是有一种类似的函数,getTime(),但这个函数返回的是自19 阅读全文
摘要:
var ua = navigator.userAgent;if (window.opera){engine.ver = window.opera.version();engine.opera = parseFloat(engine.ver);} else if (/AppleWebKit\/(\S+ 阅读全文
摘要:
一个更好的链接:http://www.qdfuns.com/notes/20635/ce437d3341256a618b0edae317cb1c9f.html 一、使用方法: 1、在页面<head>中引入ckeditor核心文件ckeditor.js <script type="text/javas 阅读全文
摘要:
一、定义和用法 <button> 标签定义的是一个按钮。 在 button 元素内部,可以放置文本或图像。这是<button>与使用 input 元素创建的按钮的不同之处。 二者相比较, <button> 控件提供了更为强大的功能和更丰富的内容。<button> 与 </button> 标签之间的所 阅读全文