7.commit階段(聽(tīng)說(shuō)renderer幫我們打好標(biāo)記了,映射真實(shí)節(jié)點(diǎn)吧)

人人都能讀懂的react源碼解析(大廠高薪必備)

7.commit階段(聽(tīng)說(shuō)renderer幫我們打好標(biāo)記了,映射真實(shí)節(jié)點(diǎn)吧)

視頻課程&調(diào)試demos

視頻課程的目的是為了快速掌握react源碼運(yùn)行的過(guò)程和react中的scheduler砰碴、reconciler馆蠕、renderer苟蹈、fiber等寂呛,并且詳細(xì)debug源碼和分析,過(guò)程更清晰。

視頻課程:進(jìn)入課程

demos:demo

課程結(jié)構(gòu):

  1. 開(kāi)篇(聽(tīng)說(shuō)你還在艱難的啃react源碼)
  2. react心智模型(來(lái)來(lái)來(lái),讓大腦有react思維吧)
  3. Fiber(我是在內(nèi)存中的dom)
  4. 從legacy或concurrent開(kāi)始(從入口開(kāi)始,然后讓我們奔向未來(lái))
  5. state更新流程(setState里到底發(fā)生了什么)
  6. render階段(厲害了,我有創(chuàng)建Fiber的技能)
  7. commit階段(聽(tīng)說(shuō)renderer幫我們打好標(biāo)記了,映射真實(shí)節(jié)點(diǎn)吧)
  8. diff算法(媽媽再也不擔(dān)心我的diff面試了)
  9. hooks源碼(想知道Function Component是怎樣保存狀態(tài)的嘛)
  10. scheduler&lane模型(來(lái)看看任務(wù)是暫停、繼續(xù)和插隊(duì)的)
  11. concurrent mode(并發(fā)模式是什么樣的)
  12. 手寫(xiě)迷你react(短小精悍就是我)

在render階段的末尾會(huì)調(diào)用commitRoot(root);進(jìn)入commit階段蚊惯,這里的root指的就是fiberRoot,然后會(huì)遍歷render階段生成的effectList灵临,effectList上的Fiber節(jié)點(diǎn)保存著對(duì)應(yīng)的props變化截型。之后會(huì)遍歷effectList進(jìn)行對(duì)應(yīng)的dom操作和生命周期、hooks回調(diào)或銷(xiāo)毀函數(shù)儒溉,各個(gè)函數(shù)做的事情如下

image

在commitRoot函數(shù)中其實(shí)是調(diào)度了commitRootImpl函數(shù)

function commitRoot(root) {
  var renderPriorityLevel = getCurrentPriorityLevel();
  runWithPriority$1(ImmediatePriority$1, commitRootImpl.bind(null, root, renderPriorityLevel));
  return null;
}

在commitRootImpl的函數(shù)中主要分三個(gè)部分:

  • mutation前

    1. 調(diào)用flushPassiveEffects執(zhí)行完所有effect的任務(wù)

    2. 初始化相關(guān)變量

    3. 賦值firstEffect給后面遍歷effectList用

      do {
          // 調(diào)用flushPassiveEffects執(zhí)行完所有effect的任務(wù)
          flushPassiveEffects();
        } while (rootWithPendingPassiveEffects !== null);
      
          //...
      
        // 重置變量 finishedWork指rooFiber
        root.finishedWork = null;
          //重置優(yōu)先級(jí)
        root.finishedLanes = NoLanes;
      
        // Scheduler回調(diào)函數(shù)重置
        root.callbackNode = null;
        root.callbackId = NoLanes;
      
        // 重置全局變量
        if (root === workInProgressRoot) {
          workInProgressRoot = null;
          workInProgress = null;
          workInProgressRootRenderLanes = NoLanes;
        } else {
        }
      
          //rootFiber可能會(huì)有新的副作用 將它也加入到effectLis
        let firstEffect;
        if (finishedWork.effectTag > PerformedWork) {
          if (finishedWork.lastEffect !== null) {
            finishedWork.lastEffect.nextEffect = finishedWork;
            firstEffect = finishedWork.firstEffect;
          } else {
            firstEffect = finishedWork;
          }
        } else {
          firstEffect = finishedWork.firstEffect;
        }
      
      
  • mutation階段

    遍歷effectList分別執(zhí)行三個(gè)方法commitBeforeMutationEffects宦焦、commitMutationEffects、commitLayoutEffects執(zhí)行對(duì)應(yīng)的dom操作和生命周期

    在介紹雙緩存Fiber樹(shù)的時(shí)候顿涣,我們?cè)跇?gòu)建完workInProgress Fiber樹(shù)之后會(huì)將fiberRoot的current指向workInProgress Fiber波闹,讓workInProgress Fiber成為current,這個(gè)步驟發(fā)生在commitMutationEffects函數(shù)執(zhí)行之后涛碑,commitLayoutEffects之前精堕,因?yàn)閏omponentWillUnmount發(fā)生在commitMutationEffects函數(shù)中,這時(shí)還可以獲取之前的Update锌唾,而componentDidMountcomponentDidUpdate會(huì)在commitLayoutEffects中執(zhí)行锄码,這時(shí)已經(jīng)可以獲取更新后的真實(shí)dom了

    function commitRootImpl(root, renderPriorityLevel) {
        //...
        do {
          //...
          commitBeforeMutationEffects();
        } while (nextEffect !== null);
    
        do {
          //...
          commitMutationEffects(root, renderPriorityLevel);//commitMutationEffects
        } while (nextEffect !== null);
    
      root.current = finishedWork;//切換current Fiber樹(shù)
    
      do {
          //...
          commitLayoutEffects(root, lanes);//commitLayoutEffects
        } while (nextEffect !== null);
        //...
    }
    
    
  • mutation 后

    1. 根據(jù)rootDoesHavePassiveEffects賦值相關(guān)變量

    2. 執(zhí)行flushSyncCallbackQueue處理componentDidMount等生命周期或者useLayoutEffect等同步任務(wù)

      onst rootDidHavePassiveEffects = rootDoesHavePassiveEffects;
      
      // 根據(jù)rootDoesHavePassiveEffects賦值相關(guān)變量
      if (rootDoesHavePassiveEffects) {
        rootDoesHavePassiveEffects = false;
        rootWithPendingPassiveEffects = root;
        pendingPassiveEffectsLanes = lanes;
        pendingPassiveEffectsRenderPriority = renderPriorityLevel;
      } else {}
      //...
      
      // 確保被調(diào)度
      ensureRootIsScheduled(root, now());
      
      // ...
      
      // 執(zhí)行flushSyncCallbackQueue處理componentDidMount等生命周期或者useLayoutEffect等同步任務(wù)
      flushSyncCallbackQueue();
      
      return null;
      
      

      現(xiàn)在讓我們來(lái)看看mutation階段的三個(gè)函數(shù)分別做了什么事情

      • commitBeforeMutationEffects

        該函數(shù)主要做了如下兩件事

        1. 執(zhí)行g(shù)etSnapshotBeforeUpdate

          在源碼中commitBeforeMutationEffectOnFiber對(duì)應(yīng)的函數(shù)是commitBeforeMutationLifeCycles在該函數(shù)中會(huì)調(diào)用getSnapshotBeforeUpdate,現(xiàn)在我們知道了getSnapshotBeforeUpdate是在mutation階段中的commitBeforeMutationEffect函數(shù)中執(zhí)行的晌涕,而commit階段是同步的,所以getSnapshotBeforeUpdate也同步執(zhí)行

          function commitBeforeMutationLifeCycles(
            current: Fiber | null,
            finishedWork: Fiber,
          ): void {
            switch (finishedWork.tag) {
                  //...
              case ClassComponent: {
                if const instance = finishedWork.stateNode;
                    const snapshot = instance.getSnapshotBeforeUpdate(//getSnapshotBeforeUpdate
                      finishedWork.elementType === finishedWork.type
                        ? prevProps
                        : resolveDefaultProps(finishedWork.type, prevProps),
                      prevState,
                    );
                  }
          }
          
          
        2. 調(diào)度useEffect

          在flushPassiveEffects函數(shù)中調(diào)用flushPassiveEffectsImpl遍歷pendingPassiveHookEffectsUnmount和pendingPassiveHookEffectsMount痛悯,執(zhí)行對(duì)應(yīng)的effect回調(diào)和銷(xiāo)毀函數(shù)余黎,而這兩個(gè)數(shù)組是在commitLayoutEffects函數(shù)中賦值的(待會(huì)就會(huì)講到),mutation后effectList賦值給rootWithPendingPassiveEffects载萌,然后scheduleCallback調(diào)度執(zhí)行flushPassiveEffects

          function flushPassiveEffectsImpl() {
            if (rootWithPendingPassiveEffects === null) {//在mutation后變成了root
              return false;
            }
            const unmountEffects = pendingPassiveHookEffectsUnmount;
            pendingPassiveHookEffectsUnmount = [];//useEffect的回調(diào)函數(shù)
            for (let i = 0; i < unmountEffects.length; i += 2) {
              const effect = ((unmountEffects[i]: any): HookEffect);
              //...
              const destroy = effect.destroy;
              destroy();
            }
          
            const mountEffects = pendingPassiveHookEffectsMount;//useEffect的銷(xiāo)毀函數(shù)
            pendingPassiveHookEffectsMount = [];
            for (let i = 0; i < mountEffects.length; i += 2) {
              const effect = ((unmountEffects[i]: any): HookEffect);
              //...
              const create = effect.create;
              effect.destroy = create();
            }
          }
          
          

          componentDidUpdate或componentDidMount會(huì)在commit階段同步執(zhí)行(這個(gè)后面會(huì)講到)惧财,而useEffect會(huì)在commit階段異步調(diào)度,所以適用于數(shù)據(jù)請(qǐng)求等副作用的處理

          注意扭仁,和在render階段的fiber node會(huì)打上Placement等標(biāo)簽一樣垮衷,useEffect或useLayoutEffect也有對(duì)應(yīng)的effect Tag,在源碼中對(duì)應(yīng)export const Passive = /* */ 0b0000000001000000000;

          function commitBeforeMutationEffects() {
            while (nextEffect !== null) {
              const current = nextEffect.alternate;
              const effectTag = nextEffect.effectTag;
          
              // 在commitBeforeMutationEffectOnFiber函數(shù)中會(huì)執(zhí)行g(shù)etSnapshotBeforeUpdate
              if ((effectTag & Snapshot) !== NoEffect) {
                commitBeforeMutationEffectOnFiber(current, nextEffect);
              }
          
              // scheduleCallback調(diào)度useEffect
              if ((effectTag & Passive) !== NoEffect) {
                if (!rootDoesHavePassiveEffects) {
                  rootDoesHavePassiveEffects = true;
                  scheduleCallback(NormalSchedulerPriority, () => {
                    flushPassiveEffects();
                    return null;
                  });
                }
              }
              nextEffect = nextEffect.nextEffect;//遍歷effectList
            }
          }
          
          
      • commitMutationEffects

        commitMutationEffects主要做了如下幾件事

        1. 調(diào)用commitDetachRef解綁ref(第11章hook會(huì)講解)

        2.根據(jù)effectTag執(zhí)行對(duì)應(yīng)的dom操作

        3.useLayoutEffect銷(xiāo)毀函數(shù)在UpdateTag時(shí)執(zhí)行

      function commitMutationEffects(root: FiberRoot, renderPriorityLevel) {
        //遍歷effectList
        while (nextEffect !== null) {
      
          const effectTag = nextEffect.effectTag;
          // 調(diào)用commitDetachRef解綁ref
          if (effectTag & Ref) {
            const current = nextEffect.alternate;
            if (current !== null) {
              commitDetachRef(current);
            }
          }
      
          // 根據(jù)effectTag執(zhí)行對(duì)應(yīng)的dom操作
          const primaryEffectTag =
            effectTag & (Placement | Update | Deletion | Hydrating);
          switch (primaryEffectTag) {
            // 插入dom
            case Placement: {
              commitPlacement(nextEffect);
              nextEffect.effectTag &= ~Placement;
              break;
            }
            // 插入更新dom
            case PlacementAndUpdate: {
              // 插入
              commitPlacement(nextEffect);
              nextEffect.effectTag &= ~Placement;
              // 更新
              const current = nextEffect.alternate;
              commitWork(current, nextEffect);
              break;
            }
              //...
            // 更新dom
            case Update: {
              const current = nextEffect.alternate;
              commitWork(current, nextEffect);
              break;
            }
            // 刪除dom
            case Deletion: {
              commitDeletion(root, nextEffect, renderPriorityLevel);
              break;
            }
          }
      
          nextEffect = nextEffect.nextEffect;
        }
      }
      
      

      現(xiàn)在讓我們來(lái)看看操作dom的這幾個(gè)函數(shù)

      commitPlacement插入節(jié)點(diǎn):

      簡(jiǎn)化后的代碼很清晰乖坠,找到該節(jié)點(diǎn)最近的parent節(jié)點(diǎn)和兄弟節(jié)點(diǎn)搀突,然后根據(jù)isContainer來(lái)判斷是插入到兄弟節(jié)點(diǎn)前還是append到parent節(jié)點(diǎn)后

      function commitPlacement(finishedWork: Fiber): void {
          //...
        const parentFiber = getHostParentFiber(finishedWork);//找到最近的parent
      
        let parent;
        let isContainer;
        const parentStateNode = parentFiber.stateNode;
        switch (parentFiber.tag) {
          case HostComponent:
            parent = parentStateNode;
            isContainer = false;
            break;
          //...
      
        }
        const before = getHostSibling(finishedWork);//找兄弟節(jié)點(diǎn)
        if (isContainer) {
          insertOrAppendPlacementNodeIntoContainer(finishedWork, before, parent);
        } else {
          insertOrAppendPlacementNode(finishedWork, before, parent);
        }
      }
      
      

      commitWork更新節(jié)點(diǎn):

      在簡(jiǎn)化后的源碼中可以看到

      如果fiber的tag是SimpleMemoComponent會(huì)調(diào)用commitHookEffectListUnmount執(zhí)行對(duì)應(yīng)的hook的銷(xiāo)毀函數(shù),可以看到傳入的參數(shù)是HookLayout | HookHasEffect熊泵,也就是說(shuō)執(zhí)行useLayoutEffect的銷(xiāo)毀函數(shù)仰迁。

      如果是HostComponent甸昏,那么調(diào)用commitUpdate,commitUpdate最后會(huì)調(diào)用updateDOMProperties處理對(duì)應(yīng)Update的dom操作

      function commitWork(current: Fiber | null, finishedWork: Fiber): void {
        if (!supportsMutation) {
          switch (finishedWork.tag) {
             //...
            case SimpleMemoComponent: {
              commitHookEffectListUnmount(HookLayout | HookHasEffect, finishedWork);
            }
           //...
          }
        }
      
        switch (finishedWork.tag) {
          //...
          case HostComponent: {
            //...
            commitUpdate(
                  instance,
                  updatePayload,
                  type,
                  oldProps,
                  newProps,
                  finishedWork,
                );
            }
            return;
          }
      }
      
      
      function updateDOMProperties(
        domElement: Element,
        updatePayload: Array<any>,
        wasCustomComponentTag: boolean,
        isCustomComponentTag: boolean,
      ): void {
        // TODO: Handle wasCustomComponentTag
        for (let i = 0; i < updatePayload.length; i += 2) {
          const propKey = updatePayload[i];
          const propValue = updatePayload[i + 1];
          if (propKey === STYLE) {
            setValueForStyles(domElement, propValue);
          } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
            setInnerHTML(domElement, propValue);
          } else if (propKey === CHILDREN) {
            setTextContent(domElement, propValue);
          } else {
            setValueForProperty(domElement, propKey, propValue, isCustomComponentTag);
          }
        }
      }
      
      

      commitDeletion刪除節(jié)點(diǎn):

      如果是ClassComponent會(huì)執(zhí)行componentWillUnmount徐许,刪除fiber施蜜,如果是FunctionComponent 會(huì)刪除ref、并執(zhí)行useEffect的銷(xiāo)毀函數(shù)雌隅,具體可在源碼中查看unmountHostComponents翻默、commitNestedUnmounts、detachFiberMutation這幾個(gè)函數(shù)

      function commitDeletion(
        finishedRoot: FiberRoot,
        current: Fiber,
        renderPriorityLevel: ReactPriorityLevel,
      ): void {
        if (supportsMutation) {
          // Recursively delete all host nodes from the parent.
          // Detach refs and call componentWillUnmount() on the whole subtree.
          unmountHostComponents(finishedRoot, current, renderPriorityLevel);
        } else {
          // Detach refs and call componentWillUnmount() on the whole subtree.
          commitNestedUnmounts(finishedRoot, current, renderPriorityLevel);
        }
        const alternate = current.alternate;
        detachFiberMutation(current);
        if (alternate !== null) {
          detachFiberMutation(alternate);
        }
      }
      
      
      • commitLayoutEffects

      在commitMutationEffects之后所有的dom操作都已經(jīng)完成恰起,可以訪問(wèn)dom了冰蘑,commitLayoutEffects主要做了

      1. 調(diào)用commitLayoutEffectOnFiber執(zhí)行相關(guān)生命周期函數(shù)或者h(yuǎn)ook相關(guān)callback

      2.執(zhí)行commitAttachRef為ref賦值

function commitLayoutEffects(root: FiberRoot, committedLanes: Lanes) {
  while (nextEffect !== null) {
    const effectTag = nextEffect.effectTag;

    // 調(diào)用commitLayoutEffectOnFiber執(zhí)行生命周期和hook
    if (effectTag & (Update | Callback)) {
      const current = nextEffect.alternate;
      commitLayoutEffectOnFiber(root, current, nextEffect, committedLanes);
    }

    // ref賦值
    if (effectTag & Ref) {
      commitAttachRef(nextEffect);
    }

    nextEffect = nextEffect.nextEffect;
  }
}

commitLayoutEffectOnFiber:

在源碼中commitLayoutEffectOnFiber函數(shù)的別名是commitLifeCycles,在簡(jiǎn)化后的代碼中可以看到村缸,commitLifeCycles會(huì)判斷fiber的類(lèi)型祠肥,SimpleMemoComponent會(huì)執(zhí)行useLayoutEffect的回調(diào),然后調(diào)度useEffect梯皿,ClassComponent會(huì)執(zhí)行componentDidMount或者componentDidUpdate仇箱,this.setState第二個(gè)參數(shù)也會(huì)執(zhí)行,HostRoot會(huì)執(zhí)行ReactDOM.render函數(shù)的第三個(gè)參數(shù)东羹,例如

ReactDOM.render(<App />, document.querySelector("#root"), function() {
  console.log("root mount");
});

現(xiàn)在可以知道useLayoutEffect是在commit階段同步執(zhí)行剂桥,useEffect會(huì)在commit階段異步調(diào)度

function commitLifeCycles(
  finishedRoot: FiberRoot,
  current: Fiber | null,
  finishedWork: Fiber,
  committedLanes: Lanes,
): void {
  switch (finishedWork.tag) {
    case SimpleMemoComponent: {
      // 此函數(shù)會(huì)調(diào)用useLayoutEffect的回調(diào)
      commitHookEffectListMount(HookLayout | HookHasEffect, finishedWork);
      // 向pendingPassiveHookEffectsUnmount和pendingPassiveHookEffectsMount中push effect                       // 并且調(diào)度它們
      schedulePassiveEffects(finishedWork);
    }
    case ClassComponent: {
      //條件判斷...
      instance.componentDidMount();
      //條件判斷...
      instance.componentDidUpdate(//update 在layout期間同步執(zhí)行
        prevProps,
        prevState,
        instance.__reactInternalSnapshotBeforeUpdate,
      );      
    }

    case HostRoot: {
      commitUpdateQueue(finishedWork, updateQueue, instance);//render第三個(gè)參數(shù)
    }

  }
}

在schedulePassiveEffects中會(huì)將useEffect的銷(xiāo)毀和回調(diào)函數(shù)push到pendingPassiveHookEffectsUnmount和pendingPassiveHookEffectsMount中

function schedulePassiveEffects(finishedWork: Fiber) {
  const updateQueue: FunctionComponentUpdateQueue | null = (finishedWork.updateQueue: any);
  const lastEffect = updateQueue !== null ? updateQueue.lastEffect : null;
  if (lastEffect !== null) {
    const firstEffect = lastEffect.next;
    let effect = firstEffect;
    do {
      const {next, tag} = effect;
      if (
        (tag & HookPassive) !== NoHookEffect &&
        (tag & HookHasEffect) !== NoHookEffect
      ) {
        //push useEffect的銷(xiāo)毀函數(shù)并且加入調(diào)度
        enqueuePendingPassiveHookEffectUnmount(finishedWork, effect);
        //push useEffect的回調(diào)函數(shù)并且加入調(diào)度
        enqueuePendingPassiveHookEffectMount(finishedWork, effect);
      }
      effect = next;
    } while (effect !== firstEffect);
  }
}

commitAttachRef:

commitAttachRef中會(huì)判斷ref的類(lèi)型,執(zhí)行ref或者給ref.current賦值

function commitAttachRef(finishedWork: Fiber) {
  const ref = finishedWork.ref;
  if (ref !== null) {
    const instance = finishedWork.stateNode;

    let instanceToUse;
    switch (finishedWork.tag) {
      case HostComponent:
        instanceToUse = getPublicInstance(instance);
        break;
      default:
        instanceToUse = instance;
    }

    if (typeof ref === "function") {
      // 執(zhí)行ref回調(diào)
      ref(instanceToUse);
    } else {
      // 如果是值的類(lèi)型則賦值給ref.current
      ref.current = instanceToUse;
    }
  }
}

各階段生命周期執(zhí)行情況

_27

mount和update發(fā)生的生命周期的調(diào)用如下

_28
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
  • 序言:七十年代末属提,一起剝皮案震驚了整個(gè)濱河市权逗,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌冤议,老刑警劉巖斟薇,帶你破解...
    沈念sama閱讀 206,214評(píng)論 6 481
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場(chǎng)離奇詭異恕酸,居然都是意外死亡堪滨,警方通過(guò)查閱死者的電腦和手機(jī),發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 88,307評(píng)論 2 382
  • 文/潘曉璐 我一進(jìn)店門(mén)蕊温,熙熙樓的掌柜王于貴愁眉苦臉地迎上來(lái)袱箱,“玉大人,你說(shuō)我怎么就攤上這事义矛》⒈剩” “怎么了?”我有些...
    開(kāi)封第一講書(shū)人閱讀 152,543評(píng)論 0 341
  • 文/不壞的土叔 我叫張陵凉翻,是天一觀的道長(zhǎng)了讨。 經(jīng)常有香客問(wèn)我,道長(zhǎng),這世上最難降的妖魔是什么量蕊? 我笑而不...
    開(kāi)封第一講書(shū)人閱讀 55,221評(píng)論 1 279
  • 正文 為了忘掉前任铺罢,我火速辦了婚禮,結(jié)果婚禮上残炮,老公的妹妹穿的比我還像新娘韭赘。我一直安慰自己,他們只是感情好势就,可當(dāng)我...
    茶點(diǎn)故事閱讀 64,224評(píng)論 5 371
  • 文/花漫 我一把揭開(kāi)白布泉瞻。 她就那樣靜靜地躺著,像睡著了一般苞冯。 火紅的嫁衣襯著肌膚如雪袖牙。 梳的紋絲不亂的頭發(fā)上,一...
    開(kāi)封第一講書(shū)人閱讀 49,007評(píng)論 1 284
  • 那天舅锄,我揣著相機(jī)與錄音鞭达,去河邊找鬼。 笑死皇忿,一個(gè)胖子當(dāng)著我的面吹牛畴蹭,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播鳍烁,決...
    沈念sama閱讀 38,313評(píng)論 3 399
  • 文/蒼蘭香墨 我猛地睜開(kāi)眼叨襟,長(zhǎng)吁一口氣:“原來(lái)是場(chǎng)噩夢(mèng)啊……” “哼!你這毒婦竟也來(lái)了幔荒?” 一聲冷哼從身側(cè)響起糊闽,我...
    開(kāi)封第一講書(shū)人閱讀 36,956評(píng)論 0 259
  • 序言:老撾萬(wàn)榮一對(duì)情侶失蹤,失蹤者是張志新(化名)和其女友劉穎爹梁,沒(méi)想到半個(gè)月后右犹,有當(dāng)?shù)厝嗽跇?shù)林里發(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 43,441評(píng)論 1 300
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡卫键,尸身上長(zhǎng)有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 35,925評(píng)論 2 323
  • 正文 我和宋清朗相戀三年傀履,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片莉炉。...
    茶點(diǎn)故事閱讀 38,018評(píng)論 1 333
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡,死狀恐怖碴犬,靈堂內(nèi)的尸體忽然破棺而出絮宁,到底是詐尸還是另有隱情,我是刑警寧澤服协,帶...
    沈念sama閱讀 33,685評(píng)論 4 322
  • 正文 年R本政府宣布绍昂,位于F島的核電站,受9級(jí)特大地震影響,放射性物質(zhì)發(fā)生泄漏窘游。R本人自食惡果不足惜唠椭,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 39,234評(píng)論 3 307
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望忍饰。 院中可真熱鬧贪嫂,春花似錦、人聲如沸艾蓝。這莊子的主人今日做“春日...
    開(kāi)封第一講書(shū)人閱讀 30,240評(píng)論 0 19
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽(yáng)赢织。三九已至亮靴,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間于置,已是汗流浹背茧吊。 一陣腳步聲響...
    開(kāi)封第一講書(shū)人閱讀 31,464評(píng)論 1 261
  • 我被黑心中介騙來(lái)泰國(guó)打工, 沒(méi)想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留八毯,地道東北人搓侄。 一個(gè)月前我還...
    沈念sama閱讀 45,467評(píng)論 2 352
  • 正文 我出身青樓,卻偏偏與公主長(zhǎng)得像宪彩,于是被迫代替她去往敵國(guó)和親休讳。 傳聞我的和親對(duì)象是個(gè)殘疾皇子,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 42,762評(píng)論 2 345

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