摘要:
用 MDN 查 JavaScript 和 CSS 基础知识 用维基百科查编程概念 用 Stackoverflow 查疑难杂症 用 http://Caniuse.com 查兼容性 用 Google 搜索 用「site:http://github.com 关键词」搜索好用的库 用「关键词 MDN」来搜索 阅读全文
摘要:
四种查看路径: 查看效果:猛戳 1、直接按F12 2、Ctrl+Shift+I查看 3、鼠标点击右键查看 4、Ctrl+u=view-source:+url 把以上三种状态都屏蔽掉就可以了,document有onkeydown(键盘按键事件),该事件里面找到对应的keycode并处理就可以, doc 阅读全文
摘要:
1、three.js example https://threejs.org/examples/#webgl_animation_cloth 1、react-router-dom(react-router4.0) https://reacttraining.com/react-router/web/ 阅读全文
摘要:
function IsReverse(text){ return text.split('').reverse().join(''); } IsReverse("你是我的小丫小苹果");//"果苹小丫小的我是你" IsReverse("no zuo no die");//"eid on ouz on" 阅读全文
摘要:
更完整点 阅读全文
摘要:
git地址:https://github.com/wjf444128852/about-web-rem 建议在CSS引入之前引入下面这段JS代码,比例1rem:100px。 用了这个JS就不用在CSS内写N多个@media screenXXX了。 说明: 在html内最外层元素给max-width: 阅读全文
摘要:
var u = navigator.userAgent, app = navigator.appVersion; var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; //android终端或者uc浏览器 var 阅读全文
摘要:
var arr = [ { id: 15 }, { id: -1 }, { id: 0 }, { id: 3 }, { id: 12.2 }, { }, { id: null }, { id: NaN }, { id: 'undefined' } ]; var invalidEntries = 0; function filterByID(obj) { ... 阅读全文
摘要:
var getR=function(str,reg){ return str.match(reg).join(""); } var a=getR("138888",/8/g); console.log(a);//8888 var getR=function(str,reg){ return str.match(reg); } var a=getR("138888",/8/g); co... 阅读全文
摘要:
头:header 内容:content/container 尾:footer 导航:nav 侧栏:sidebar 栏目:column 页面外围控制整体布局宽度:wrapper 左右中:left right center 登录条:loginbar 标志:logo 广告:banner 页面主体:main 阅读全文