
Web前端
Web前端相关
诗与浪子
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
【vue】插槽
插槽插槽内容编译作用域 父级模板里的所有内容都是在父级作用域中编译的;子模板里的所有内容都是在子作用域中编译的。后备内容 为插槽设置默认值。具名插槽 //子组件中定义插槽 <slot name="header"></slot> //父组件中传递插槽内容 <template v-slot:header> <h1>Here might be a page原创 2022-03-18 09:21:13 · 744 阅读 · 0 评论 -
【vue】Prop
Prop的大小写 //定义组件参数 props: { postTitle: String } //向组件传递参数 <BlogPost :post-title="title"></BlogPost> postTitle和post-title等价单向数据流 子组件修改父组件传递的Prop参数的值 可以修改成功,但是会报错。 子组件将父组件传递的Pro原创 2022-03-16 16:19:53 · 799 阅读 · 0 评论 -
【vue】状态管理
状态管理 vuex mutations //定义 function set_value(state, number) { state.num } //调用 this.$store.commit('add', 2) actions //定义 function change_num(store, number) { setInterval原创 2022-03-15 14:50:44 · 891 阅读 · 0 评论 -
【vue】路由和路由守卫
路由 vue-router静态路由动态路由路由跳转组件复用watch:{//路由之间跳转时执行,可以复用组件$router(to, from) {//获取路径参数to.params.路径参数名;//获取查询参数to.query.查询参数;}}嵌套路由{path:‘page’, component:page, children:[{path:‘sub_page1’, component:sub_page1},{path:‘sub_page2’, component:sub_p原创 2022-03-15 14:35:54 · 609 阅读 · 0 评论 -
Bootstrap主题色
default #777 primary #337ab7success #5cb85cinfo #5bc0dewarning #f0ad4edanger #d9534f原创 2021-03-28 09:27:34 · 288 阅读 · 0 评论 -
【web前端】vue.js
模板语法插值操作Mustache语法1.字符串拼接2.算数运算和逻辑运算原创 2021-03-25 19:58:10 · 155 阅读 · 0 评论 -
【JQuery】事件
事件事件绑定事件解绑事件冒泡默认行为事件绑定事件解绑事件冒泡默认行为原创 2021-01-02 11:39:43 · 263 阅读 · 2 评论 -
【CSS】控件
开关轻亮型.switch { position: relative; }.switch > input { position: absolute; top: 0; left: 0; display: block; width: 100%; height: 100%; margin: 0; opacity: 0; }.switch > ...原创 2020-04-30 13:54:31 · 597 阅读 · 0 评论 -
【Javascript】常用功能
拖拽function drag(obj) { obj.onmousedown = function (event) { //兼容IE浏览器 获取事件对象 event = event || window.event; //兼容IE浏览器 对鼠标下一次按下行为进行捕获 obj.setCapture && ...原创 2020-04-24 19:49:11 · 230 阅读 · 0 评论 -
【HTTP】HTTP权威指南
HTTP概述Web客户端和服务器web客户端:最常见的web客户端就是web浏览器,如微软的Internet Explorer,网景的Navigator。web服务器:资源资源:原创 2020-01-12 21:25:48 · 346 阅读 · 1 评论 -
【Bootstrap】全局CSS样式
按钮按钮类链接按钮<a class="btn btn-primary" href="http://www.baidu.com" role="button">百度</a>设置按钮样式<!-- 默认按钮 --><button type="button" class="btn btn-default">默认</button>&...原创 2020-01-09 17:20:28 · 239 阅读 · 0 评论 -
【Web前端】JavaScript
JS原创 2019-05-12 13:06:57 · 231 阅读 · 0 评论 -
【Web前端】CSS
Css原创 2019-05-12 13:05:45 · 241 阅读 · 0 评论 -
【Web前端】HTML
HTML原创 2019-05-12 13:04:21 · 231 阅读 · 0 评论