Vue.js起手式+Vue小作品实战

本文是小羊根据Vue.js文档进行解读的第一篇文章,主要内容涵盖Vue.js的基础部分的知识的,文章顺序基本按照官方文档的顺序,每个知识点现附上代码,然后根据代码给予个人的一些理解,最后还放上在线编辑的代码以供练习和测试之用;
在最后,我参考SegmentFault上的一篇技博,对Vue进行初入的实战,目的是将新鲜学到的知识立即派上用场;
如果你还是前端的小白,相信这篇文章可能会对产生一些帮助和引起思想的碰撞,因为大家的学习历程是相似的,遇到的困惑也有一定的共通性,如果文章出现谬误之处,欢迎各位童鞋及时指正;

Vue.js

1. Vue.js是什么

Vue.js(读音 /vjuː/, 类似于 view) 是一套构建用户界面的 渐进式框架。与其他重量级框架不同的是Vue 的核心库只关注视图层。
Vue.js 的目标是通过尽可能简单的 API 实现响应的数据绑定组合的视图组件

Vue.js是一种MVVM框架,其中html是view层,js是model层,通过vue.js(使用v-model这个指令)完成中间的底层逻辑,实现绑定的效果。改变其中的任何一层,另外一层都会改变;

MVVM

2.Vue的基本语法

2.1 Vue构造函数开启Vue之旅

通过构造函数Vue创建一个Vue的根实例

<div id='#el'></div>
---
var vm = new Vue({
  //options
  el:'#el',
  data:{},
  methods:{}
})
---
//扩展Vue构造器
var MyComponent = Vue.extend({
    //扩展选项
})
var vm = new MyComponent({})

解读:

  • 使用Vue构造函数创建一个Vue实例,然后通过Vue实例的el接口实现和HTML元素的挂载;
  • 构造函数Vue需要传入一个选项对象,可包含挂载元素、数据、方法和生命周期钩子等;
  • 构造函数Vue可以通过extend方法实现扩展,从而可以用预定义的选项创建可复用的组件构造函数,但是构建组件的常用方法是使用Vue.component()接口去实现;

2.2 Vue实例的属性和方法

Vue实例将代理data对象的所有属性,也就是说部署在data对象上的所有属性和方法都将直接成为Vue实例的属性和方法

<div id="app">{{message}}
  <button v-on:click="sayHello">click me</button>
</div>
---
var app = new Vue({
    el:'#app',
    data:{
      message:'hello world!',
      sayHello:function(){
          console.log(1)
      }
  }
})
---
//如果想要获取到app这一实例中选项的对象,Vue提供$进行获取
app.$el === document.getElementById('app')//true
app.$data.message//hello world

【demo】

【TIP】
Vue实例所代理data对象上的属性只有在实例创建的同时进行初始化才具有响应式更新,若在实例创建之后添加是不会触发视图更新的;


2.3数据绑定操作

绑定文本和HTML

<div id = "app">
    {{msg}}
    <div v-html="hi"></div>
</div>
---
var app  = new Vue({
    el: '#app',
    data:{
      msg: 'hello world!',
      hi:'<h1>hi</h1>'
  }
})

解读:

  • HTML部分实现数据的动态绑定,这个数据是vue实例的属性值;
  • JS部分的语法可以从jQuery角度去理解,相当于创建一个Vue实例,这个实例指向#app,并在Vue提供的固定接口data上定义Vue实例的属性;
  • 使用{{message}}的mustache语法只能将数据解释为纯文本,为了输出HTML,可以使用v-html指令;

绑定数据在元素的属性

 <div id="app" v-bind:title='message' v-bind:style='red' v-once>
     {{message}}
  </div>
---
var app = new Vue({
  el: '#app',
  data:{
    message: 'hello world!',
    red: 'color:red'
  }
})

解读:

  • 定义在Vue实例的data接口上的数据的绑定灵活的,可以绑定在DOM节点内部,也可以绑在属性上;
  • 绑定数据到节点属性上时,需要使用v-bind指令,这个元素节点的 title属性和 Vue 实例的 message属性绑定到一起,从而建立数据与该属性值的绑定,也可以使用v-bind:href="url"的缩写方式:href="url"
  • v-once指令能够让你执行一次性的插值,当数据改变时,插值处的内容不会更新;
    【demo】

使用JS表达式处理数据

 <div id='#app'>
    <p v-once>{{num + 10 }}</p>
    <p v-if='seen'>{{message + 'jirengu'}}</p>
</div>
---
var app = new Vue({
  el: '#app',
  data:{
    num:10,
    message: 'hello world!',
    seen:true
  }
})

【demo】

使用过滤器来格式化数据

<div id="app" >
    <p v-if='seen'>{{message | capitalize}}</p>
  </div>
---
var app = new Vue({
  el: '#app',
  data:{
    message: 'hello world!',
    seen:true,
  },
  filters:{
    capitalize:function(value){
      if(!value) return ''
      value = value.toString()
      return value.charAt(0).toUpperCase() + value.slice(1)
    }
  }
})

【demo】

条件指令控制DOM元素的显示操作

<div id="app" >
     <p v-if='seen'>{{message}}</p>
  </div>
---
var app = new Vue({
  el: '#app',
  data:{
    message: 'hello world!',
    seen:true
  }
})

解读:

  • v-if指令可以绑定一个属性值为布尔型的属性,当值为真时,元素将显示,反之则消失;

循环指令实现数据的遍历

 <div id="app">
    <ol>
      <li v-for='item in items'>
        {{ item.text }}
      </li>
    </ol>
</div>
---
var app = new Vue({
  el: '#app',
  data:{
    items:[
      {text:'Vue'},
      {text:'React'},
      {text:'Angular'}
    ]
  }
})

解读:

  • v-for可以绑定数组型数据进行绑定,并使用item in items形式,从而数据的遍历操作;

【demo】

事件绑定指令可以实现事件监听

<div id='app'>
  <p>{{message}}</p>
  <button v-on:click='reverseMessage'>reverseMesssage</button>
</div>
---
var app = new Vue({
  el: '#app',
  data:{
    message: 'hello world!'
  },
  methods:{
  reverseMessage:function(){
    this.message = this.message.split('').reverse().join('')
    }
  }
})

解读:

  • v-on指令用于监听事件操作,click="reverseMessage"定义点击事件后执行的回调函数;
  • v-on指令也可以采用缩写方式:@click="method"
  • 在Vue实例中,提供methods接口用于统一定义函数;

【demo】

小结

本章涉及Vue的基础的数据绑定操作,内容包括:

  • {{message}}实现文本数据的绑定,并且文本数据可以使用JS表达式和过滤器进行进一步处理;
    -v-html="hi"实现HTML数据的绑定;
  • v-bind:href="url"实现属性数据的绑定;
  • v-if="seen"v-for="item in items"指令实现流程控制;
  • v-on:click="method"指令实现事件监听

2.4计算属性

使用计算属性完成一些数据计算操作

 <div id="app" >
    <p>Original message : {{message}}</p>
    <p>Reversed message : {{ReversedMessage}}</p>
  </div>
---
var app = new Vue({
  el: '#app',
  data:{
    message: 'hello world!',
  },
  computed:{
    ReversedMessage:function(){
     return  this.message.split('').reverse().join('')
    }
  }
})

解读:

  • Vue实例提供computed对象,我们可以在对象内部定义需要进行计算的属性ReverseMessage,而提供的函数将作为属性的getter,即获取器;
  • 上述的代码使得app.ReverseMessage依赖于app.message
  • 与先前直接在{{message.split('').reverse().join('') }}使用表达式相比,它让模板过重并且难以维护代码;

计算属性 VS Methods

  <div id="app" >
    <p>Original message : {{message}}</p>
    <p>Reversed message : {{ReversedMessage}}</p>
     <p>Reversed message:{{reversedMessage()}}</p>   
  </div>
---
var app = new Vue({
  el: '#app',
  data:{
    message: 'hello world!',
  },
  computed:{
    ReversedMessage:function(){
     return  this.message.split('').reverse().join('')
    }
  },
  methods:{
    reversedMessage:function(){
     return  this.message.split('').reverse().join('')
    }
  }
})

解读:

  • 通过Vue实例的methods接口,我们在模板中调用reversedMessage函数同样实现需求;
  • methods与computed方法的区别在于:computed的数据依赖于app.message,只要message未变,则访问ReverseMessage计算属性将立即返回之前的计算结果,而methods则每次重新渲染时总是执行函数;
  • 如果有缓存需要,请使用computed方法,否则使用methods替代;

计算属性的setter

Vue实例的computed对象默认只有getter,如果你要设置数据,可以提供一个setter,即设置器;

<div id="app" > 
    <p>Hi,I'm{{fullName}}</p>
</div>
---
var app = new Vue({
  el: '#app',
  data:{
    message: 'hello world!',
    name:'Teren'
  },
  computed:{
    fullName:{
      get:function(){
         return this.name   
      },
      set:function(value){
        this.name = value
      }
    }
  }
})

2.5Class与Style的绑定

绑定Class

<div id="app" >
    <!-- 直接绑定对象的内容 -->
      <p class='static' v-bind:class="{active:isActive,error:hasError}">Hello world!</p>
   <!--  绑定对象 -->
 <p v-bind:class="classObj">こんにちは </p>    
   <p v-bind:class='style' >你好</p>
    <!-- 绑定数组 -->
    <p v-bind:class="[staticClass,activeClass,errorClass]">
Olá</p>
    <button @click='changeColor'>click me</button>
  </div>
---
//css
.static{
  width: 200px;
  height: 100px;
  background: #ccc;
}
.active{
  color:red;
}
.error{
  font-weight: 800;
}
---
var app = new Vue({
  el: '#app',
  data:{
   isActive:true,
   hasError:true,
   classObj:{
     static:true,
     active:true,
     error:true,
   },
  staticClass:'static',
  activeClass:'active',
  errorClass:'error',
  
  },
  computed:{
    style:function(){
      return {
        active: this.isActive,
        static:true,
        error:this.hasError
      }
    }
  },
  methods:{
    changeColor:function(){
      this.isActive = !this.isActive
    }
  }
})

解读:

  • 通过v-bind:class="{}"v-bind:class=[]方式为模板绑定class
  • 通过v-bind:class="{active:isActive,error:hasError}"绑定class,首先要在css中设置.active,error,然后在Vue实例的data对象中设置isActivehasError的布尔值;也可以直接传一个对象给class,即v-bind:class="classObj,再在data对象上直接赋值:
data:{
   classObj:{
     static:true,
     active:true,
     error:true,
   }
  • 你也可以通过传递数组的方式为class赋值v-bind:class="[staticClass,activeClass,errorClass]",此时你要在data对象上为数组的元素的属性赋值:
data:{
  staticClass:'static',
  activeClass:'active',
  errorClass:'error',
  }

【TIP】无论是哪种方式,前提都是css中的class要先设定

【demo】

绑定style

  <div id="app" >
    <p v-bind:style='styleObj'>Hello World!</p>
    <p v-bind:style='[styleObj,bgObj]'>你好</p>
  </div>
---
var app = new Vue({
  el: '#app',
  data:{
    styleObj:{
    fontWeight:800,
    color:'red'
  },
    bgObj:{
      width:'100px',
      height:'80px',
      background:'#ccc'
    }
  },
})

解读:

  • 绑定style到模板的方法有两种,一是v-bind:style="styleObj",然后在data对象上定义styleObj;而是可以通过数组方式为style传入多个样式对象

【demo】

2.6条件渲染和列表渲染

前面简单介绍了一下v-ifv-forv-on指令,下面的部分将详细介绍以上3个指令;

条件渲染

<div id="app" >
  <p v-if='ok'>Hello World!</p>
  <p v-else>Hello Universal</p>
  <template v-if='motto'>
     <h1>Steve Jobs</h1>
     <p>motto:stay hungry ! stay foolish</p>
  </template>
  <p v-show='ok'>Show Me</p>
  </div>
---
var app = new Vue({
  el: '#app',
  data:{
     ok:true,
     motto:true,
  },
})

解读:

  • 通过v-ifv-else指令实现条件渲染,其中v-if="value"的valuey
    要在data对象中赋布尔值,v-if支持<template>语法
  • v-show="value"是另一种条件渲染的方法;

【TIP】 v-if和v-show的区别

  • v-if是真实的条件渲染,当进行条件切换时,它会销毁和重建条件块的内容,并且它支持<template>语法;
  • v-show的条件切换时基于css的display属性,所以不会销毁和重建条件块的内容;
  • 当你频繁需要切换条件时,推荐使用v-show;否则使用v-if;

【demo】

列表渲染

<div id="app" >
    <ol>
      <li v-for='car in cars'>
         {{car.name}}
      </li>
    </ol>
    <ul>
      <li v-for='(food,index) in foods'>
      {{index}}---{{food}}---{{delicious}}
      </li>
    </ul>
    <ul>
      <li v-for='(value,key,index) in object'>
        {{index}}.{{key}}.{{value}}
      </li>
    </ul>
    <div>
      <span v-for='n in 10' style="margin-left:5px">{{n}}</span>
    </div>
       <span v-for='n in evenNumbers' style="margin-left:5px">{{n}}</span>
    </div> 
   <!--  <div>
       <span v-for='n in odd(counts)' style="margin-left:5px">{{n}}</span> 
    </div> -->
  </div>
---
var app = new Vue({
  el: '#app',
  data:{
    delicious:'delicious',
     cars:[
       {name:'Benz'},
       {name:'BMW'}
     ],
    foods:[
      'tomato',
      'potato',
      'ice cream'
    ],
    object :{
      name:'Benz',
      age:'18'
    },
    numbers:[1,2,3,4,5,6,7,8,9,10],
    counts:[1,2,3,4,5]
  },
  computed:{
      evenNumbers:function(){
        return this.numbers.filter(function(number){
          return number%2 === 0
        })
      }
  },
  methods:{
    odd:function(counts){
     return counts.filter(function(count){
        return count%2 === 1;
      })
    }
  }
})

解读:

  • v-for指令能够让我们循环渲染列表型数据,数据放在data对象中,类型可以如下:
data:{
//数字数组
  numbers:[1,2,3,4,5,6,7,8,9,10],
  counts:[1,2,3,4,5]
//字符串数组
  foods:[
      'tomato',
      'potato',
      'ice cream'
    ],
//对象数组
    cars:[
       {name:'Benz'},
       {name:'BMW'}
     ],
//对象
 object :{
      name:'Benz',
      age:'18'
    },
}
  • 根据不同类型的数据,v-for指令在模板中具体采用的语法如下:
//数据为数字数组
<div>
  <span v-for="n in numbers">{{n}}</span>
</div>
---
//数据为字符数组
<ul>
    <ol v-for='food in foods'>{{food}}</ol>
</ul>
---
//数据为对象
<ul>
  <ol v-for="value in object">{{value}}</ol>
</ul>
//或者
<ul>
  <ol v-for="(value,key,index) in object">{{index}}.{{key}}.{{value}}</ol>
</ul>
---
//数据为对象数组
<ul>
  <ol v-for="car in cars">{{car.name}}</ol>
</ul>
  • 在 v-for块中,我们拥有对父作用域属性的完全访问权限;

【demo】


2.7 事件监听

简单的事件监听——直接在指令上处理数据

<div id="#app">
    <p v-on:click="counter+=1">{{counter}}</p>
</div>
---
var app = new Vue({
  el: "#app",
  data:{
    counter: 0,
  }
})

复杂的事件监听——在methods对象定义回调函数

<div id="#app">
    <p v-on:click="greet">{{vue}</p>
</div>
---
var app = new Vue({
  el: "#app",
  data:{
       vue:"hello Vue.js"
  },
methods:{
    greet:function(event){
          console.log(this.vue)
      }
  }
})

事件修饰符——调用事件对象函数的快捷方式

  <div v-on:click.prevent="greet">1</div>//等价于event.preventDefault()
  <div v-on:click.stop="greet">2</div>//等价于event.stopPropagation()
  <div v-on:click.capture="greet">3</div>//等价于事件回调函数采用捕获阶段监听事件
  <div v-on:click.self="greet">4</div>//等价于event.target

按键修饰符——按键事件的快捷方式

常见按键别名包括:
- enter
- tab
- delete
- esc
- space
- up
- down
- left
- right

【demo】


2.8 表单控件绑定

文本控件

<div id="app">
    <p>{{message}}</p>
    <input type="text" v-model='message'>
  </div>
---
var app = new Vue({
  el:'#app',
  data:{
    message:'Hello World!'
  },
})

解读:

  • 通过v-model指令可以实现数据的双向绑定,即View层的数据变化可以直接改变Model层的数据,而Model层的数据改变也可以直接反映在View层;
  • 上述代码v-model="message"使得input的value属性和message属性绑定,在输入框输入值,即改变value同时也改变message;

单选控件

 <input id="man" value="man" type="radio" v-model='picked'>
    <label for="man">Man</label>
    <br>
     <input id="woman" value="woman" type="radio" v-model='picked'>
    <label for="woman">Woman</label>
    <div style="margin-left:10px">{{picked}}</div>
---
var app = new Vue({
  el:'#app',
  data:{
    message:'Hello World!',
    picked:'man'
  },
})

解读:

  • v-model指令绑定data对象的picked属性,该属性默认指向type='radio'的input的value;

复选框

 <input type="checkbox" id="Benz" v-model='checked' value='Benz'>
    <label for="Benz">Benz</label>
   <input type="checkbox" id="BMW" v-model='checked' value="BMW">
    <label for="BMW">BMW</label>
    <div>Checked Name:{{checked}}</div>
---
var app = new Vue({
  el:'#app',
  data:{
    message:'Hello World!',
    picked:'man',
    selected:"A",
    checked:[],
  },
})

【demo】


2.9 组件

组件可以扩展 HTML 元素,封装可重用的代码。在较高层面上,组件是自定义元素;
通过Vue.component()接口将大型应用拆分为各个组件,从而使代码更好具有维护性、复用性以及可读性


注册组件

<div id="app">
   <my-component></my-component>
  </div>
---

Vue.component('my-component',{
  template:'<div>my-first-component</div>'
})

var app = new Vue({
  el:'#app',
  data:{
  }
})

解读:

  • 注册行为必须在创建实例之前;
  • component的template接口定义组件的html元素;

局部注册组件

  <div id="app">
   <my-component>
     <heading></heading>
   </my-component>
  </div>
---
Vue.component('my-component',{
  template:'<div>my-first-component</div>'
})

var Child = {
  template: '<h3>Hello World</h3>'
}

var app = new Vue({
  el:'#app',
  components:{
    'my-component':Child
  }
})

解读:

  • 可以定义一个子组件,在实例的components接口中将子组件挂载到父组件上,子组件只在父组件的作用域下有效;

特殊DOM模板将会限制组件的渲染

像这些包含固定样式的元素<ul>, <ol>, <table>, <select>
自定义组件中使用这些受限制的元素时会导致渲染失败;
通的方案是使用特殊的 is属性:

 <table>
      <tr is="my-component">
 </table>

创建组件的data对象必须是函数

<counter></counter>
 <counter></counter>
 <counter></counter>
---
Vue.component('counter',{
  template:'<button @click="count+=1">{{count}}</button>',
  data:function(){
    return {
      count: 0
    }
  }
})

解读:

  • 在组件当中定义的数据count必须以函数的形式返回;

使用Props实现父组件向子组件传递数据

<child some-text='hello'></child>
    <br>
    <child v-bind:some-text='message'> </child>
---
Vue.component('child',{
  template:'<div>{{someText}}</div>',
  props:['someText']
})
var app = new Vue({
  el:'#app',
  components:{
    'my-component':Child
  },
  data:{
    message:"你好"
  }
})

解读:

  • 组件实例的作用域是孤立的。这意味着不能并且不应该在子组件的模板内直接引用父组件的数据。可以使用 props 把数据传给子组件;

  • 可以用 v-bind动态绑定 props 的值到父组件的数据中。每当父组件的数据变化时,该变化也会传导给子组件,注意这种绑定方式是单向绑定;

【demo】

父组件是使用 props 传递数据给子组件,但如果子组件要把数据传递回去则使用自定义事件!

 <div id="app">
      <p>{{total}}</p>
      <button-counter v-on:increment='incrementTotal'></button-counter>
      <button-counter @increment='incrementTotal'></button-counter>
  </div>
---
Vue.component('button-counter',{
  template:'<button v-on:click="increment">{{counter}}</button>',
  data:function(){
    return {
      counter:0
    }
  },
  methods:{
    increment:function(){
      this.counter +=1;
      this.$emit('increment')
    }
  }
})

var app = new Vue({
  el:'#app',
  data:{
    total:0
  },
  methods:{
    incrementTotal:function(){
      this.total += 1;
    }
  }
})

解读:

  • 父组件可以通过监听子组件的自定义事件,从而改变父组件的数据;
  • 子组件每点击一次,触发increment函数,该函数在执行过程中通过$emit('increment')发出increment事件;
  • button控件同时监听increment事件,每次发出该事件就改变父组件的total值;
    【demo】

使用Slots分发内容

内容分发指的是混合父组件的内容与子组件自己的模板;

<div id="app">
     <h1>I'm the parent title</h1>
  <my-component>
    <p>This is some original content</p>
    <p>This is some more original content</p>
  </my-component>
    <hr>
  </div>
---
Vue.component('my-component',{
  template:"<div><h2>I'm the child title</h2><slot>如果没有分发内容则显示我。</slot></div>"
})
var app = new Vue({
  el:'#app',
  data:{
  }.
})

解读:

  • 如果子组件模板一个<slot>都不包含,则父组件内容将会被丢弃;
  • 当子组件模板只有一个没有属性的 slot 时,父组件整个内容片段将插入到 slot 所在的 DOM 位置,并替换掉 slot 标签本身;
  • 只有在宿主元素为空,且没有要插入的内容时才显示备用内容;
//子组件app-layout模板
<div class="container">
<header>
<slot name="header"></slot>
</header>
<main>
<slot></slot>
</main>
<footer>
<slot name="footer"></slot>
</footer>
</div>
//父组件模板
<app-layout>
<h1 slot="header">Here might be a page title</h1>

<p>A paragraph for the main content.</p>
<p>And another one.</p>

<p slot="footer">Here's some contact info</p>
</app-layout>
//渲染结果
<div class="container">
<header>
<h1>Here might be a page title</h1>
</header>
<main>
<p>A paragraph for the main content.</p>
<p>And another one.</p>
</main>
<footer>
<p>Here's some contact info</p>
</footer>
</div>

解读:

  • 具名slot相当于给slot设置标识符,只要在父组件的元素上设置<div slot="name"></div>就可以把该元素插入子组件定义的模板;

【TIP】关于组件的命名规范

  • 当注册组件(或者 props)时,可以使用 kebab-case ,camelCase ,或 TitleCase
// 在组件定义中
components: {
// 使用 camelCase 形式注册
'kebab-cased-component': { /* ... */ },
'camelCasedComponent': { /* ... */ },
'TitleCasedComponent': { /* ... */ }
}
  • 在 HTML 模版中,请使用 kebab-case 形式:
<kebab-cased-component></kebab-cased-component>
<camel-cased-component></camel-cased-component>
<title-cased-component></title-cased-component>
  • 为了记忆方便,建议统一使用kebab-case形式;

【demo】


2.10 vue-resource插件

使用vue-rescource实现前后端的通信


在vue实例中新增ready对象,当页面完成加载时发出请求

 new Vue({
    el: '#app',
    ready: function() {
        this.$http.get('book.json', function(data) {
            this.$set('books', data);
        }).error(function(data, status, request) {
            console.log('fail' + status + "," + request);
        })
      //post方法:this.$http.post(url,postdata,function callback)
    },
    data: {
        ....
        books:''
    },
    .....

【TIP】

这个$http请求和jquery的ajax还是有点区别,这里的post的data默认不是以form data的形式,而是request payload。解决起来也很简单:在vue实例中添加headers字段:

http: { headers: {'Content-Type': 'application/x-www-form-urlencoded'} }

3. 实战之Vue小作品

Hello Vue.js

【Hello Vue.js】

上面的Vue小作品是小羊仿照SegmentFault的一篇技博的练手之作,建议各位对照源码亲手练习一次,以便初步熟悉Vue的使用;

【注】版权归犯迷糊的小羊所有,转载请联系作者。


参考资料:

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 159,015评论 4 362
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 67,262评论 1 292
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 108,727评论 0 243
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 43,986评论 0 205
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 52,363评论 3 287
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 40,610评论 1 219
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 31,871评论 2 312
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 30,582评论 0 198
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 34,297评论 1 242
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 30,551评论 2 246
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 32,053评论 1 260
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 28,385评论 2 253
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 33,035评论 3 236
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 26,079评论 0 8
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 26,841评论 0 195
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 35,648评论 2 274
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 35,550评论 2 270

推荐阅读更多精彩内容