zoukankan      html  css  js  c++  java
  • 面包屑导航

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta http-equiv="X-UA-Compatible" content="ie=edge">
        <title>Document</title>
        <script src="js/vue.js"></script>
        <style>
        .bread{
             90%;
            height: 50px;
            border-bottom: 1px solid #000;
            margin: 0 auto;
            line-height: 50px;
        }
        .hot{
            color: red;
            border-bottom-color: red;
        }
        </style>
    </head>
    <body>
        <div id="app">
            <bread aa="首页 > 图片列表 > 用户列表"></bread>
        </div>
        <script>
        Vue.component('bread',{
            template:'<div class="bread" :class="{hot:bool}" @click="fnChange"><div>当前位置:{{ aa }}</div></div>',
            props:['aa'],
            data:function(){
                return {
                    bool:false
                }
            },
            methods:{
                fnChange:function(){
                    this.bool = !this.bool
                }
            }
        })
        var vm = new Vue({
            el:'#app'
            
        })
        </script>
    </body>
    </html>
    

      

  • 相关阅读:
    (四)rsync未授权访问
    (前言一)HTTP报文
    (一)会话固定攻击
    使用Burp、PhantomJS进行XSS检测
    win10配置环境变量
    java学习网站http://how2j.cn/
    镜像下载
    jQuery
    jQuery
    jQuery
  • 原文地址:https://www.cnblogs.com/wf-skylark/p/9215333.html
Copyright © 2011-2022 走看看