8種vue組件通信方式(轉(zhuǎn)載)

本篇文章帶大家詳細(xì)了解一下vue中8種組件通信方式瞬矩。有一定的參考價(jià)值茶鉴,有需要的朋友可以參考一下,希望對(duì)大家有所幫助景用。

image

vue是數(shù)據(jù)驅(qū)動(dòng)視圖更新的框架涵叮,所以對(duì)于vue來(lái)說(shuō)組件間的數(shù)據(jù)通信非常重要,那么組件之間如何進(jìn)行數(shù)據(jù)通信的呢伞插?

首先我們需要知道在vue中組件之間存在什么樣的關(guān)系, 才更容易理解他們的通信方式, 就好像過(guò)年回家割粮,坐著一屋子的陌生人,相互之間怎么稱呼媚污,這時(shí)就需要先知道自己和他們之間是什么樣的關(guān)系舀瓢。

vue組件中關(guān)系說(shuō)明:

1.png

如上圖所示, A與B、A與C耗美、B與D京髓、C與E組件之間是父子關(guān)系; B與C之間是兄弟關(guān)系商架;A與D堰怨、A與E之間是隔代關(guān)系; D與E是堂兄關(guān)系(非直系親屬)

針對(duì)以上關(guān)系我們歸類為:

父子組件之間通信

非父子組件之間通信(兄弟組件甸私、隔代關(guān)系組件等)

本文會(huì)介紹組件間通信的8種方式如下圖目錄所示:并介紹在不同的場(chǎng)景下如何選擇有效方式實(shí)現(xiàn)的組件間通信方式诚些,希望可以幫助小伙伴們更好理解組件間的通信。

2.png

一皇型、props/$emit

父組件通過(guò)props的方式向子組件傳遞數(shù)據(jù)诬烹,而通過(guò)$emit子組件可以向父組件通信。

1. 父組件向子組件傳值

下面通過(guò)一個(gè)例子說(shuō)明父組件如何向子組件傳遞數(shù)據(jù):在子組件article.vue中如何獲取父組件section.vue中的數(shù)據(jù)articles:['紅樓夢(mèng)', '西游記','三國(guó)演義']



// section父組件<template>? <divclass="section">? ? <com-article:articles="articleList"></com-article>? </div></template><script>import comArticle from './test/article.vue'

export default {

? name: 'HelloWorld',

? components: { comArticle },

? data() {

? ? return {

? ? ? articleList: ['紅樓夢(mèng)', '西游記', '三國(guó)演義']

? ? }

? }

}</script>



// 子組件 article.vue<template>? <div>? ? <spanv-for="(item, index) in articles":key="index">{{item}}</span>? </div></template><script>export default {

? props: ['articles']

}</script>



總結(jié): prop 只可以從上一級(jí)組件傳遞到下一級(jí)組件(父子組件)弃鸦,即所謂的單向數(shù)據(jù)流绞吁。而且 prop 只讀,不可被修改唬格,所有修改都會(huì)失效并警告家破。

2. 子組件向父組件傳值

對(duì)于$emit我自己的理解是這樣的:$emit綁定一個(gè)自定義事件, 當(dāng)這個(gè)語(yǔ)句被執(zhí)行時(shí), 就會(huì)將參數(shù)arg傳遞給父組件,父組件通過(guò)v-on監(jiān)聽(tīng)并接收參數(shù)颜说。 通過(guò)一個(gè)例子,說(shuō)明子組件如何向父組件傳遞數(shù)據(jù)汰聋。

在上個(gè)例子的基礎(chǔ)上, 點(diǎn)擊頁(yè)面渲染出來(lái)的ariticle的item, 父組件中顯示在數(shù)組中的下標(biāo)



// 父組件中<template>? <divclass="section">? ? <com-article :articles="articleList" @onEmitIndex="onEmitIndex"></com-article>? ? <p>{{currentIndex}}</p>? </div></template><script>import comArticle from './test/article.vue'

export default {

? name: 'HelloWorld',

? components: { comArticle },

? data() {

? ? return {

? ? ? currentIndex: -1,

? ? ? articleList: ['紅樓夢(mèng)', '西游記', '三國(guó)演義']

? ? }

? },

? methods: {

? ? onEmitIndex(idx) {

? ? ? this.currentIndex = idx

? ? }

? }

}</script>



<template><div><divv-for="(item, index) in articles":key="index"@click="emitIndex(index)">{{item}}</div></div></template><script>export default {? props: ['articles'],? methods: {? ? emitIndex(index) {? ? ? this.$emit('onEmitIndex', index)? ? }? }}</script>



二门粪、$children/$parent

3.png

上面這張圖片是vue官方的解釋,通過(guò)$parent和$children就可以訪問(wèn)組件的實(shí)例烹困,拿到實(shí)例代表什么玄妈?代表可以訪問(wèn)此組件的所有方法和data。接下來(lái)就是怎么實(shí)現(xiàn)拿到指定組件的實(shí)例髓梅。

使用方法


// 父組件中<template>? <divclass="hello_world">? ? <div>{{msg}}</div>? ? <com-a></com-a>? ? <button @click="changeA">點(diǎn)擊改變子組件值</button>? </div></template><script>import ComA from './test/comA.vue'

export default {

? name: 'HelloWorld',

? components: { ComA },

? data() {

? ? return {

? ? ? msg: 'Welcome'

? ? }

? },

? methods: {

? ? changeA() {

? ? ? // 獲取到子組件A

? ? ? this.$children[0].messageA = 'this is new value'

? ? }

? }

}</script>



// 子組件中<template>? <divclass="com_a">? ? <span>{{messageA}}</span>? ? <p>獲取父組件的值為:? {{parentVal}}</p>? </div></template><script>export default {

? data() {

? ? return {

? ? ? messageA: 'this is old'

? ? }

? },

? computed:{

? ? parentVal(){

? ? ? return this.$parent.msg;

? ? }

? }

}</script>



要注意邊界情況拟蜻,如在#app上拿$parent得到的是new Vue()的實(shí)例,在這實(shí)例上再拿$parent得到的是undefined枯饿,而在最底層的子組件拿$children是個(gè)空數(shù)組酝锅。也要注意得到$parent和$children的值不一樣,$children的值是數(shù)組奢方,而$parent是個(gè)對(duì)象

總結(jié)

上面兩種方式用于父子組件之間的通信搔扁, 而使用props進(jìn)行父子組件通信更加普遍; 二者皆不能用于非父子組件之間的通信。

三袱巨、provide/inject

概念:

provide/inject是vue2.2.0新增的api, 簡(jiǎn)單來(lái)說(shuō)就是父組件中通過(guò)provide來(lái)提供變量, 然后再子組件中通過(guò)inject來(lái)注入變量阁谆。

注意: 這里不論子組件嵌套有多深, 只要調(diào)用了inject那么就可以注入provide中的數(shù)據(jù),而不局限于只能從當(dāng)前父組件的props屬性中回去數(shù)據(jù)

舉例驗(yàn)證

接下來(lái)就用一個(gè)例子來(lái)驗(yàn)證上面的描述:

假設(shè)有三個(gè)組件: A.vue愉老、B.vue场绿、C.vue 其中 C是B的子組件,B是A的子組件



// A.vue<template>? <div>? ? <comB></comB>? </div></template><script>? import comB from '../components/test/comB.vue'

? export default {

? ? name: "A",

? ? provide: {

? ? ? for: "demo"

? ? },

? ? components:{

? ? ? comB

? ? }

? }</script>



// B.vue<template>? <div>? ? {{demo}}? ? <comC></comC>? </div></template><script>? import comC from '../components/test/comC.vue'

? export default {

? ? name: "B",

? ? inject: ['for'],

? ? data() {

? ? ? return {

? ? ? ? demo: this.for

? ? ? }

? ? },

? ? components: {

? ? ? comC

? ? }

? }</script>



// C.vue<template>? <div>? ? {{demo}}? </div></template><script>? export default {

? ? name: "C",

? ? inject: ['for'],

? ? data() {

? ? ? return {

? ? ? ? demo: this.for

? ? ? }

? ? }

? }</script>



四嫉入、ref/refs

ref:如果在普通的 DOM 元素上使用焰盗,引用指向的就是 DOM 元素;如果用在子組件上咒林,引用就指向組件實(shí)例熬拒,可以通過(guò)實(shí)例直接調(diào)用組件的方法或訪問(wèn)數(shù)據(jù), 我們看一個(gè)ref來(lái)訪問(wèn)組件的例子:



// 子組件 A.vueexportdefault{data(){return{name:'Vue.js'}},methods:{sayHello(){console.log('hello')}}}



// 父組件 app.vue<template>? <component-aref="comA"></component-a></template><script>? export default {

? ? mounted () {

? ? ? const comA = this.$refs.comA;

? ? ? console.log(comA.name);? // Vue.js

? ? ? comA.sayHello();? // hello

? ? }

? }</script>



五垫竞、eventBus

eventBus又稱為事件總線澎粟,在vue中可以使用它來(lái)作為溝通橋梁的概念, 就像是所有組件共用相同的事件中心,可以向該中心注冊(cè)發(fā)送事件或接收事件欢瞪, 所以組件都可以通知其他組件活烙。

eventBus也有不方便之處, 當(dāng)項(xiàng)目較大,就容易造成難以維護(hù)的災(zāi)難

在Vue的項(xiàng)目中怎么使用eventBus來(lái)實(shí)現(xiàn)組件之間的數(shù)據(jù)通信呢?具體通過(guò)下面幾個(gè)步驟

1. 初始化

首先需要?jiǎng)?chuàng)建一個(gè)事件總線并將其導(dǎo)出, 以便其他模塊可以使用或者監(jiān)聽(tīng)它.



// event-bus.jsimportVuefrom'vue'exportconstEventBus=newVue()



2. 發(fā)送事件

假設(shè)你有兩個(gè)組件:additionNum和showNum, 這兩個(gè)組件可以是兄弟組件也可以是父子組件;這里我們以兄弟組件為例:



<template><div><show-num-com></show-num-com><addition-num-com></addition-num-com></div></template><script>import showNumCom from './showNum.vue'import additionNumCom from './additionNum.vue'export default {? components: { showNumCom, additionNumCom }}</script>



// addtionNum.vue 中發(fā)送事件<template>? <div>? ? <button @click="additionHandle">+加法器</button>? ?

? </div></template><script>import {EventBus} from './event-bus.js'

console.log(EventBus)

export default {

? data(){

? ? return{

? ? ? num:1

? ? }

? },

? methods:{

? ? additionHandle(){

? ? ? EventBus.$emit('addition', {

? ? ? ? num:this.num++

? ? ? })

? ? }

? }

}</script>



3. 接收事件


// showNum.vue 中接收事件<template>? <div>計(jì)算和: {{count}}</div></template><script>import { EventBus } from './event-bus.js'

export default {

? data() {

? ? return {

? ? ? count: 0

? ? }

? },

? mounted() {

? ? EventBus.$on('addition', param => {

? ? ? this.count = this.count + param.num;

? ? })

? }

}</script>



這樣就實(shí)現(xiàn)了在組件addtionNum.vue中點(diǎn)擊相加按鈕, 在showNum.vue中利用傳遞來(lái)的num展示求和的結(jié)果.

4. 移除事件監(jiān)聽(tīng)者

如果想移除事件的監(jiān)聽(tīng), 可以像下面這樣操作:



import{eventBus}from'event-bus.js'EventBus.$off('addition',{})



六遣鼓、Vuex

1.? Vuex介紹

Vuex 是一個(gè)專為 Vue.js 應(yīng)用程序開(kāi)發(fā)的狀態(tài)管理模式啸盏。它采用集中式存儲(chǔ)管理應(yīng)用的所有組件的狀態(tài),并以相應(yīng)的規(guī)則保證狀態(tài)以一種可預(yù)測(cè)的方式發(fā)生變化.

Vuex 解決了多個(gè)視圖依賴于同一狀態(tài)和來(lái)自不同視圖的行為需要變更同一狀態(tài)的問(wèn)題骑祟,將開(kāi)發(fā)者的精力聚焦于數(shù)據(jù)的更新而不是數(shù)據(jù)在組件之間的傳遞上

2. Vuex各個(gè)模塊

state:用于數(shù)據(jù)的存儲(chǔ)回懦,是store中的唯一數(shù)據(jù)源

getters:如vue中的計(jì)算屬性一樣气笙,基于state數(shù)據(jù)的二次包裝,常用于數(shù)據(jù)的篩選和多個(gè)數(shù)據(jù)的相關(guān)性計(jì)算

mutations:類似函數(shù)怯晕,改變state數(shù)據(jù)的唯一途徑潜圃,且不能用于處理異步事件

actions:類似于mutation,用于提交mutation來(lái)改變狀態(tài)舟茶,而不直接變更狀態(tài)秉犹,可以包含任意異步操作

modules:類似于命名空間,用于項(xiàng)目中將各個(gè)模塊的狀態(tài)分開(kāi)定義和操作稚晚,便于維護(hù)

3. Vuex實(shí)例應(yīng)用


// 父組件<template>? <divid="app">? ? <ChildA/>? ? <ChildB/>? </div></template><script>? import ChildA from './components/ChildA' // 導(dǎo)入A組件

? import ChildB from './components/ChildB' // 導(dǎo)入B組件

? export default {

? ? name: 'App',

? ? components: {ChildA, ChildB} // 注冊(cè)A、B組件

? }</script>



// 子組件childA<template>? <divid="childA">? ? <h1>我是A組件</h1>? ? <button @click="transform">點(diǎn)我讓B組件接收到數(shù)據(jù)</button>? ? <p>因?yàn)槟泓c(diǎn)了B型诚,所以我的信息發(fā)生了變化:{{BMessage}}</p>? </div></template><script>? export default {

? ? data() {

? ? ? return {

? ? ? ? AMessage: 'Hello客燕,B組件,我是A組件'

? ? ? }

? ? },

? ? computed: {

? ? ? BMessage() {

? ? ? ? // 這里存儲(chǔ)從store里獲取的B組件的數(shù)據(jù)

? ? ? ? return this.$store.state.BMsg

? ? ? }

? ? },

? ? methods: {

? ? ? transform() {

? ? ? ? // 觸發(fā)receiveAMsg狰贯,將A組件的數(shù)據(jù)存放到store里去

? ? ? ? this.$store.commit('receiveAMsg', {

? ? ? ? ? AMsg: this.AMessage

? ? ? ? })

? ? ? }

? ? }

? }</script>



// 子組件 childB<template>? <divid="childB">? ? <h1>我是B組件</h1>? ? <button @click="transform">點(diǎn)我讓A組件接收到數(shù)據(jù)</button>? ? <p>因?yàn)槟泓c(diǎn)了A也搓,所以我的信息發(fā)生了變化:{{AMessage}}</p>? </div></template><script>? export default {

? ? data() {

? ? ? return {

? ? ? ? BMessage: 'Hello,A組件涵紊,我是B組件'

? ? ? }

? ? },

? ? computed: {

? ? ? AMessage() {

? ? ? ? // 這里存儲(chǔ)從store里獲取的A組件的數(shù)據(jù)

? ? ? ? return this.$store.state.AMsg

? ? ? }

? ? },

? ? methods: {

? ? ? transform() {

? ? ? ? // 觸發(fā)receiveBMsg傍妒,將B組件的數(shù)據(jù)存放到store里去

? ? ? ? this.$store.commit('receiveBMsg', {

? ? ? ? ? BMsg: this.BMessage

? ? ? ? })

? ? ? }

? ? }

? }</script>



vuex的store,js

importVuefrom'vue'importVuexfrom'vuex'Vue.use(Vuex)conststate={// 初始化A和B組件的數(shù)據(jù),等待獲取AMsg:'',BMsg:''}constmutations={receiveAMsg(state,payload){// 將A組件的數(shù)據(jù)存放于statestate.AMsg=payload.AMsg},receiveBMsg(state,payload){// 將B組件的數(shù)據(jù)存放于statestate.BMsg=payload.BMsg}}exportdefaultnewVuex.Store({state,mutations})

七摸柄、localStorage/sessionStorage

這種通信比較簡(jiǎn)單,缺點(diǎn)是數(shù)據(jù)和狀態(tài)比較混亂,不太容易維護(hù)颤练。

通過(guò)window.localStorage.getItem(key)獲取數(shù)據(jù)

通過(guò)window.localStorage.setItem(key,value)存儲(chǔ)數(shù)據(jù)

注意用JSON.parse()/JSON.stringify()做數(shù)據(jù)格式轉(zhuǎn)換

localStorage/sessionStorage可以結(jié)合vuex, 實(shí)現(xiàn)數(shù)據(jù)的持久保存,同時(shí)使用vuex解決數(shù)據(jù)和狀態(tài)混亂問(wèn)題.

八$attrs與$listeners

現(xiàn)在我們來(lái)討論一種情況, 我們一開(kāi)始給出的組件關(guān)系圖中A組件與D組件是隔代關(guān)系驱负, 那它們之前進(jìn)行通信有哪些方式呢嗦玖?

使用props綁定來(lái)進(jìn)行一級(jí)一級(jí)的信息傳遞, 如果D組件中狀態(tài)改變需要傳遞數(shù)據(jù)給A, 使用事件系統(tǒng)一級(jí)級(jí)往上傳遞

使用eventBus,這種情況下還是比較適合使用, 但是碰到多人合作開(kāi)發(fā)時(shí), 代碼維護(hù)性較低, 可讀性也低

使用Vuex來(lái)進(jìn)行數(shù)據(jù)管理, 但是如果僅僅是傳遞數(shù)據(jù), 而不做中間處理,使用Vuex處理感覺(jué)有點(diǎn)大材小用了.

在vue2.4中,為了解決該需求跃脊,引入了$attrs和$listeners宇挫, 新增了inheritAttrs選項(xiàng)。 在版本2.4以前酪术,默認(rèn)情況下,父作用域中不作為 prop 被識(shí)別 (且獲取) 的特性綁定 (class 和 style 除外)器瘪,將會(huì)“回退”且作為普通的HTML特性應(yīng)用在子組件的根元素上。接下來(lái)看一個(gè)跨級(jí)通信的例子:



// app.vue// index.vue<template>? <div>? ? <child-com1:name="name":age="age":gender="gender":height="height"title="程序員成長(zhǎng)指北"></child-com1>? </div></template><script>const childCom1 = () => import("./childCom1.vue");

export default {

? components: { childCom1 },

? data() {

? ? return {

? ? ? name: "zhang",

? ? ? age: "18",

? ? ? gender: "女",

? ? ? height: "158"

? ? };

? }

};</script>



// childCom1.vue<templateclass="border">? <div>? ? <p>name: {{name}}</p>? ? <p>childCom1的$attrs: {{$attrs}}</p>? ? <child-com2v-bind="$attrs"></child-com2>? </div></template><script>const childCom2 = () => import("./childCom2.vue");

export default {

? components: {

? ? childCom2

? },

? inheritAttrs: false, // 可以關(guān)閉自動(dòng)掛載到組件根元素上的沒(méi)有在props聲明的屬性

? props: {

? ? name: String // name作為props屬性綁定

? },

? created() {

? ? console.log(this.$attrs);

? ? // { "age": "18", "gender": "女", "height": "158", "title": "程序員成長(zhǎng)指北" }

? }

};</script>



// childCom2.vue<template>? <divclass="border">? ? <p>age: {{age}}</p>? ? <p>childCom2: {{$attrs}}</p>? </div></template><script>export default {

? inheritAttrs: false,

? props: {

? ? age: String

? },

? created() {

? ? console.log(this.$attrs);

? ? // { "gender": "女", "height": "158", "title": "程序員成長(zhǎng)指北" }

? }

};</script>




轉(zhuǎn)載:http://www.reibang.com/p/11b46dd84e9d

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
  • 序言:七十年代末绘雁,一起剝皮案震驚了整個(gè)濱河市橡疼,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌咧七,老刑警劉巖衰齐,帶你破解...
    沈念sama閱讀 216,591評(píng)論 6 501
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場(chǎng)離奇詭異继阻,居然都是意外死亡耻涛,警方通過(guò)查閱死者的電腦和手機(jī)废酷,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 92,448評(píng)論 3 392
  • 文/潘曉璐 我一進(jìn)店門(mén),熙熙樓的掌柜王于貴愁眉苦臉地迎上來(lái)抹缕,“玉大人澈蟆,你說(shuō)我怎么就攤上這事∽垦校” “怎么了趴俘?”我有些...
    開(kāi)封第一講書(shū)人閱讀 162,823評(píng)論 0 353
  • 文/不壞的土叔 我叫張陵,是天一觀的道長(zhǎng)奏赘。 經(jīng)常有香客問(wèn)我寥闪,道長(zhǎng),這世上最難降的妖魔是什么磨淌? 我笑而不...
    開(kāi)封第一講書(shū)人閱讀 58,204評(píng)論 1 292
  • 正文 為了忘掉前任疲憋,我火速辦了婚禮,結(jié)果婚禮上梁只,老公的妹妹穿的比我還像新娘缚柳。我一直安慰自己,他們只是感情好搪锣,可當(dāng)我...
    茶點(diǎn)故事閱讀 67,228評(píng)論 6 388
  • 文/花漫 我一把揭開(kāi)白布秋忙。 她就那樣靜靜地躺著,像睡著了一般构舟。 火紅的嫁衣襯著肌膚如雪灰追。 梳的紋絲不亂的頭發(fā)上,一...
    開(kāi)封第一講書(shū)人閱讀 51,190評(píng)論 1 299
  • 那天狗超,我揣著相機(jī)與錄音监嗜,去河邊找鬼。 笑死抡谐,一個(gè)胖子當(dāng)著我的面吹牛裁奇,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播麦撵,決...
    沈念sama閱讀 40,078評(píng)論 3 418
  • 文/蒼蘭香墨 我猛地睜開(kāi)眼刽肠,長(zhǎng)吁一口氣:“原來(lái)是場(chǎng)噩夢(mèng)啊……” “哼!你這毒婦竟也來(lái)了免胃?” 一聲冷哼從身側(cè)響起音五,我...
    開(kāi)封第一講書(shū)人閱讀 38,923評(píng)論 0 274
  • 序言:老撾萬(wàn)榮一對(duì)情侶失蹤,失蹤者是張志新(化名)和其女友劉穎羔沙,沒(méi)想到半個(gè)月后躺涝,有當(dāng)?shù)厝嗽跇?shù)林里發(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 45,334評(píng)論 1 310
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡扼雏,尸身上長(zhǎng)有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 37,550評(píng)論 2 333
  • 正文 我和宋清朗相戀三年坚嗜,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了夯膀。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點(diǎn)故事閱讀 39,727評(píng)論 1 348
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡苍蔬,死狀恐怖诱建,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情碟绑,我是刑警寧澤俺猿,帶...
    沈念sama閱讀 35,428評(píng)論 5 343
  • 正文 年R本政府宣布,位于F島的核電站格仲,受9級(jí)特大地震影響押袍,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜凯肋,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 41,022評(píng)論 3 326
  • 文/蒙蒙 一伯病、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧否过,春花似錦、人聲如沸惭蟋。這莊子的主人今日做“春日...
    開(kāi)封第一講書(shū)人閱讀 31,672評(píng)論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽(yáng)告组。三九已至煤伟,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間木缝,已是汗流浹背便锨。 一陣腳步聲響...
    開(kāi)封第一講書(shū)人閱讀 32,826評(píng)論 1 269
  • 我被黑心中介騙來(lái)泰國(guó)打工, 沒(méi)想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留我碟,地道東北人放案。 一個(gè)月前我還...
    沈念sama閱讀 47,734評(píng)論 2 368
  • 正文 我出身青樓,卻偏偏與公主長(zhǎng)得像矫俺,于是被迫代替她去往敵國(guó)和親吱殉。 傳聞我的和親對(duì)象是個(gè)殘疾皇子,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 44,619評(píng)論 2 354

推薦閱讀更多精彩內(nèi)容