前端
BikeRiver
一个不会后端的前端工程师不是一个好的技术负责人
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Vue 封装第三方组件时的属性绑定(非 Prop 的特性)
Vue 封装第三方组件时的属性绑定 $attrs, 必须与 inheritAttrs: false 配合使用 禁用特性继承 如果你不希望组件的根元素继承特性,你可以在组件的选项中设置 inheritAttrs: false。例如: Vue.component('my-component', { inheritAttrs: false, // ... }) 这尤其适合配合实例的 $att...原创 2019-11-14 09:41:02 · 977 阅读 · 0 评论 -
监测当前浏览器Flash是否可用
swf = navigator.plugins["Shockwave Flash"]; if (swf) { hasFlash = 1; var words = swf.description.split(" "); ...原创 2018-10-26 09:27:31 · 984 阅读 · 0 评论 -
区分css选择器-:first-child 与:first-of-type
<!DOCTYPE html> <html> <head> <style> /*嫡长子 第一个子元素是p的*/ p:first-child { background-color:yellow; } /*第一个嫡子 子元素中的第一个p*/ p:first-of-type { color:red; } </style> </head&...原创 2018-11-20 10:38:19 · 168 阅读 · 0 评论 -
关于移动端不同分辨率的处理办法
1.标明浏览器视窗 <meta charset="utf-8" /> <meta name="format-detection" content="telephone=no" /> <meta name="msapplication-tap-highlight" content="no" /> <!-- WARNI...原创 2019-04-06 21:01:56 · 735 阅读 · 0 评论
分享