重識(shí)Handler

前言

Handler是什么?我們都知道秘蛇,HandlerAndroid內(nèi)部消息機(jī)制其做,它可以幫我們方便的實(shí)現(xiàn)線程間的通訊顶考。它在Android系統(tǒng)中是非常重要的,所以明白其內(nèi)部實(shí)現(xiàn)原理是非常有必要的妖泄。

使用

要了解Handler的內(nèi)部實(shí)現(xiàn)原理驹沿,我們可以從日常使用入手,一步一步來(lái)學(xué)習(xí)其內(nèi)部實(shí)現(xiàn)原理蹈胡。
我們平常使用Handler渊季,一般都有以下幾步:

  1. Handler創(chuàng)建一個(gè)靜態(tài)類,內(nèi)部以弱引用的方式來(lái)持有對(duì)象的引用。這樣主要是為了防止Hnadler出現(xiàn)內(nèi)存泄漏的問題罚渐。
  2. 構(gòu)建一個(gè)Message對(duì)象并通過HandlersendMessage(Message msg)方法發(fā)送這個(gè)Message對(duì)象却汉。
  3. HandlerhandleMessage(msg: Message)回調(diào)方法中處理。
 @Override
 protected void onCreate(@Nullable Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      Handler mHandler=new MyHandler(this);
      Message m=Message.obtain();
      m.what=1;
      mHandler.sendMessage(m);
 }

 private static class MyHandler extends Handler {
        WeakReference<Activity> mWeakReference;

        public MyHandler(Activity activity) {
            mWeakReference = new WeakReference<Activity>(activity);
        }

        @Override
        public void handleMessage(Message msg) {
            final Activity activity = mWeakReference.get();
            if (activity == null) {
                return;
            }
            activity.runOnUiThread(new Runnable() {
                @Override
                public void run() {
                    Toast.makeText(activity, String.valueOf(msg.what), Toast.LENGTH_SHORT).show();
                }
            });
        }
  }

  • Handler在我們?nèi)粘J褂弥泻刹ⅲ畈欢嗑褪且陨蠋讉€(gè)步驟合砂,只不過Handler除了可以通過sendMessage(Message msg)方法發(fā)送MeesageHandler也還有很多別的方法可以發(fā)送Message璧坟,比如還可以post一個(gè)Runnable等等既穆,但其實(shí)它們本質(zhì)上是一樣的,最終都會(huì)調(diào)用HandlersendMessageAtTime(Message msg, long uptimeMillis)方法雀鹃。

Handler的構(gòu)造方法

要明白Handler的內(nèi)部原理幻工,第一步我們就需要看看Handler的構(gòu)造方法。

  private static final boolean FIND_POTENTIAL_LEAKS = false;
  final Looper mLooper;
  final MessageQueue mQueue;
  final Callback mCallback;
  final boolean mAsynchronous;

 public Handler() {
        this(null, false);
    }

 public Handler(Callback callback, boolean async) {
        if (FIND_POTENTIAL_LEAKS) {
            final Class<? extends Handler> klass = getClass();
            if ((klass.isAnonymousClass() || klass.isMemberClass() || klass.isLocalClass()) &&
                    (klass.getModifiers() & Modifier.STATIC) == 0) {
                Log.w(TAG, "The following Handler class should be static or leaks might occur: " +
                    klass.getCanonicalName());
            }
        }

        mLooper = Looper.myLooper();
        if (mLooper == null) {
            throw new RuntimeException(
                "Can't create handler inside thread " + Thread.currentThread()
                        + " that has not called Looper.prepare()");
        }
        mQueue = mLooper.mQueue;
        mCallback = callback;
        mAsynchronous = async;
    }

  • 可以看出黎茎,我們調(diào)用Handler的無(wú)參構(gòu)造方法囊颅,實(shí)際上Handler內(nèi)部會(huì)調(diào)用其兩個(gè)參數(shù)的構(gòu)造方法。
  • Handler兩個(gè)參數(shù)構(gòu)造方法中傅瞻,會(huì)通過Looper.myLooper()拿到一個(gè)Looper對(duì)象踢代,如果這個(gè)Looper對(duì)象為null則會(huì)拋出異常。
  • 然后就是一系列變量賦值操作嗅骄。
  • 通過Handler構(gòu)造方法胳挎,我們可以知道,在我們新建Handler對(duì)象時(shí)溺森, Looper.myLooper()一定不能為null慕爬,那么Looper.myLooper()是怎么得到Looper對(duì)象的呢?屏积,我們需要先把這個(gè)搞清楚医窿,我們來(lái)看下Looper.myLooper()方法:
 static final ThreadLocal<Looper> sThreadLocal = new ThreadLocal<Looper>();

 public static @Nullable Looper myLooper() {
        return sThreadLocal.get();
    }

  • 可以看出,Looper.myLooper()方法很簡(jiǎn)單炊林,就是調(diào)用了ThreadLocal對(duì)象的get()方法姥卢,我們看下ThreadLocal對(duì)象的get()方法:
public T get() {
        Thread t = Thread.currentThread();
        ThreadLocalMap map = getMap(t);
        if (map != null) {
            ThreadLocalMap.Entry e = map.getEntry(this);
            if (e != null) {
                @SuppressWarnings("unchecked")
                T result = (T)e.value;
                return result;
            }
        }
        return setInitialValue();
    }

  ThreadLocalMap getMap(Thread t) {
        return t.threadLocals;
    }

  private T setInitialValue() {
        T value = initialValue();
        Thread t = Thread.currentThread();
        ThreadLocalMap map = getMap(t);
        if (map != null)
            map.set(this, value);
        else
            createMap(t, value);
        return value;
    }


 protected T initialValue() {
        return null;
    }


 void createMap(Thread t, T firstValue) {
        t.threadLocals = new ThreadLocalMap(this, firstValue);
    }

  • ThreadLocal內(nèi)部是通過ThreadLocalMap對(duì)象取值的。
  • ThreadLocalMap,看起來(lái)和Map類似独榴,暫時(shí)可以當(dāng)成Map結(jié)構(gòu)來(lái)處理僧叉,稍后再分析。
  • 來(lái)看get()方法,首先得到當(dāng)前線程對(duì)象的 ThreadLocalMap對(duì)象:
    1.如果 ThreadLocalMap對(duì)象不為null括眠,就以當(dāng)前ThreadLocal對(duì)象為key彪标,得到ThreadLocalMapEntry對(duì)象,如果Entry對(duì)象不為null掷豺,Entry對(duì)象的value就是我們想要的Looper對(duì)象。
    2.如果 ThreadLocalMap對(duì)象為null薄声,就返回一個(gè)初始值当船,默認(rèn)初始值為null
  • 也就是說(shuō)默辨,要保證Looper.myLooper()不為null德频,得符合上述1中的條件。所以我們需要看看Thread中的threadLocals變量在哪賦值:
//Thread
  ThreadLocal.ThreadLocalMap threadLocals = null;

// ThreadLocal
public void set(T value) {
        Thread t = Thread.currentThread();
        ThreadLocalMap map = getMap(t);
        if (map != null)
            map.set(this, value);
        else
            createMap(t, value);
    }

 void createMap(Thread t, T firstValue) {
        t.threadLocals = new ThreadLocalMap(this, firstValue);
    }

  • Thread中的threadLocals初始為null缩幸,而且在Thread中沒有賦值的地方壹置,但是 ThreadLocalset(T value)方法是會(huì)初始化一個(gè)ThreadLocalMap對(duì)象,也就是說(shuō)表谊,如果不調(diào)用钞护,ThreadLocalset(T value)方法,Looper.myLooper()null爆办,是沒法創(chuàng)建Handler對(duì)象的∧压荆現(xiàn)在思路很明確了,我們要找到ThreadLocalset(T value)方法調(diào)用時(shí)機(jī)距辆,Looper.myLooper()會(huì)得到一個(gè)Looper對(duì)象余佃,那么Looper中應(yīng)該有個(gè)類似set的方法,把Looper對(duì)象跨算,通過 ThreadLocalset(T value)方法爆土,設(shè)置給ThreadLocalMapEntry對(duì)象的value
 public static void prepare() {
        prepare(true);
    }

    private static void prepare(boolean quitAllowed) {
        if (sThreadLocal.get() != null) {
            throw new RuntimeException("Only one Looper may be created per thread");
        }
        sThreadLocal.set(new Looper(quitAllowed));
    }

  private Looper(boolean quitAllowed) {
        mQueue = new MessageQueue(quitAllowed);
        mThread = Thread.currentThread();
    }
  • 可以發(fā)現(xiàn)是Looperprepare()方法,將一個(gè)Looper對(duì)象通過 ThreadLocalset(T value)方法诸蚕,設(shè)置給ThreadLocalMapEntry對(duì)象的value步势。初始化Looper對(duì)象同時(shí)會(huì)初始化MessageQueue對(duì)象。
  • Looperprepare()方法只能在同一個(gè)線程調(diào)用一次挫望,否則會(huì)拋出異常立润,為什么說(shuō)是同一個(gè)線程呢?因?yàn)?code>ThreadLocal的 get()方法是獲取了當(dāng)前線程的ThreadLocalMap對(duì)象媳板,通過這個(gè)ThreadLocalMap對(duì)象獲取數(shù)據(jù)桑腮。
  • 問題:我們平常使用過程中,并沒有調(diào)用Looperprepare()蛉幸,也沒有拋出異常破讨,這是為什么呢丛晦?實(shí)際上
    UI線程啟動(dòng)時(shí),就調(diào)用了Looperprepare()提陶,所以不需要我們手動(dòng)調(diào)用烫沙,所以準(zhǔn)確來(lái)說(shuō),在UI線程可以直接創(chuàng)建Handler對(duì)象隙笆,子線程必須調(diào)用Looperprepare()才能創(chuàng)建Handler對(duì)象锌蓄。

總結(jié)

  • 在UI線程可以直接創(chuàng)建Handler對(duì)象,子線程必須調(diào)用Looperprepare()才能創(chuàng)建Handler對(duì)象撑柔。
  • 一個(gè)線程瘸爽,只有一個(gè)Looper對(duì)象。這是通過ThreadLocal實(shí)現(xiàn)的铅忿,ThreadLocal是一個(gè)線程相關(guān)的類剪决,通過ThreadLocal存儲(chǔ)的數(shù)據(jù),不同線程之間的數(shù)據(jù)是相互獨(dú)立的檀训。

Message入列

  • 通過上文柑潦,我們了解了Handler的創(chuàng)建過程,接下來(lái)我們?cè)倏纯?code>Handler發(fā)送的消息是如何一步步被分發(fā)的峻凫。
  • 我們很容易知道渗鬼,無(wú)論調(diào)用Handler發(fā)送消息的哪個(gè)方法,最終都是調(diào)用了sendMessageAtTime(Message msg, long uptimeMillis)方法蔚晨,這個(gè)方法如下:
// Handler
 public boolean sendMessageAtTime(Message msg, long uptimeMillis) {
        MessageQueue queue = mQueue;
        if (queue == null) {
            RuntimeException e = new RuntimeException(
                    this + " sendMessageAtTime() called with no mQueue");
            Log.w("Looper", e.getMessage(), e);
            return false;
        }
        return enqueueMessage(queue, msg, uptimeMillis);
    }

 private boolean enqueueMessage(MessageQueue queue, Message msg, long uptimeMillis) {
        msg.target = this;
        if (mAsynchronous) {
            msg.setAsynchronous(true);
        }
        return queue.enqueueMessage(msg, uptimeMillis);
    }

//MessageQueue
boolean enqueueMessage(Message msg, long when) {
        if (msg.target == null) {
            throw new IllegalArgumentException("Message must have a target.");
        }
        if (msg.isInUse()) {
            throw new IllegalStateException(msg + " This message is already in use.");
        }

        synchronized (this) {
            if (mQuitting) {
                IllegalStateException e = new IllegalStateException(
                        msg.target + " sending message to a Handler on a dead thread");
                Log.w(TAG, e.getMessage(), e);
                msg.recycle();
                return false;
            }

            msg.markInUse();
            msg.when = when;
            Message p = mMessages;
            boolean needWake;
            if (p == null || when == 0 || when < p.when) {
                // New head, wake up the event queue if blocked.
                msg.next = p;
                mMessages = msg;
                needWake = mBlocked;
            } else {
                // Inserted within the middle of the queue.  Usually we don't have to wake
                // up the event queue unless there is a barrier at the head of the queue
                // and the message is the earliest asynchronous message in the queue.
                needWake = mBlocked && p.target == null && msg.isAsynchronous();
                Message prev;
                for (;;) {
                    prev = p;
                    p = p.next;
                    if (p == null || when < p.when) {
                        break;
                    }
                    if (needWake && p.isAsynchronous()) {
                        needWake = false;
                    }
                }
                msg.next = p; // invariant: p == prev.next
                prev.next = msg;
            }

            // We can assume mPtr != 0 because mQuitting is false.
            if (needWake) {
                nativeWake(mPtr);
            }
        }
        return true;
    }

  • 上面代碼便是Message添加到MessageQueue的過程乍钻,MessageQueue我們可以理解為消息隊(duì)列,用來(lái)存放Message對(duì)象铭腕。下面我們來(lái)一步一步看看Message是如何添加到MessageQueue的银择。
  1. 首先,會(huì)判斷Messagetarget是不是null累舷,是null則拋出異常浩考,這個(gè)target是當(dāng)前Handler對(duì)象,通過上面代碼可以知道被盈,target是在enqueueMessage(MessageQueue queue, Message msg, long uptimeMillis)方法里面賦值的析孽。
  2. 會(huì)判斷Message是不是已經(jīng)添加過了,如果是一個(gè)已經(jīng)添加過的Message也會(huì)拋出異常只怎。
  3. 通過synchronize來(lái)進(jìn)行線程同步袜瞬,準(zhǔn)備將Message添加到MessageQueue
  4. 判斷Thread是否處于dead狀態(tài)身堡,如果處于dead狀態(tài)則不再繼續(xù)執(zhí)行添加邓尤,直接返回false
  5. 開始添加,把Message標(biāo)記為use狀態(tài),同時(shí)給Message設(shè)置期望執(zhí)行時(shí)間汞扎,也就是when,注意這個(gè)期望執(zhí)行時(shí)間是用的SystemClock.uptimeMillis()delayMillis之和季稳,是一個(gè)相對(duì)時(shí)間,其實(shí)想想這里最主要的就是需要一個(gè)相對(duì)時(shí)間澈魄。
    6.判斷當(dāng)前有沒有正在執(zhí)行的任務(wù)景鼠,或者當(dāng)前Message是不是需要立刻執(zhí)行,或者當(dāng)前Message的期望執(zhí)行時(shí)間是不是比將要執(zhí)行的Message得期望執(zhí)行時(shí)間要早痹扇,如果滿足铛漓,就將這個(gè)Message'插入到MessageQueue的最前面,否則鲫构,根據(jù)when的大小票渠,順序插入MessageQueue。然后根據(jù)needWake`參數(shù)芬迄,決定是否需要喚醒執(zhí)行任務(wù)。
  • 經(jīng)過上面的步驟昂秃,Message就被插入MessageQueue等待執(zhí)行了禀梳。也就是說(shuō)Message是要添加到MessageQueue,然后等待被取出執(zhí)行的肠骆。那么算途,Message如何被取出執(zhí)行,然后分發(fā)給Handler的呢?

Looper.loop()

  • 通過上文蚀腿,我們已經(jīng)把Message添加到MessageQueue的過程梳理清楚了嘴瓤,那么Message是如何被取出執(zhí)行的呢?其實(shí)是通過Looper.loop()來(lái)取出執(zhí)行莉钙,并分發(fā)給發(fā)送MessageHandler廓脆。下面來(lái)看下Looper.loop()方法。
//Looper
public static void loop() {
        final Looper me = myLooper();
        if (me == null) {
            throw new RuntimeException("No Looper; Looper.prepare() wasn't called on this thread.");
        }
        final MessageQueue queue = me.mQueue;

        // Make sure the identity of this thread is that of the local process,
        // and keep track of what that identity token actually is.
        Binder.clearCallingIdentity();
        final long ident = Binder.clearCallingIdentity();

        // Allow overriding a threshold with a system prop. e.g.
        // adb shell 'setprop log.looper.1000.main.slow 1 && stop && start'
        final int thresholdOverride =
                SystemProperties.getInt("log.looper."
                        + Process.myUid() + "."
                        + Thread.currentThread().getName()
                        + ".slow", 0);

        boolean slowDeliveryDetected = false;

        for (;;) {
            Message msg = queue.next(); // might block
            if (msg == null) {
                // No message indicates that the message queue is quitting.
                return;
            }

            // This must be in a local variable, in case a UI event sets the logger
            final Printer logging = me.mLogging;
            if (logging != null) {
                logging.println(">>>>> Dispatching to " + msg.target + " " +
                        msg.callback + ": " + msg.what);
            }

            final long traceTag = me.mTraceTag;
            long slowDispatchThresholdMs = me.mSlowDispatchThresholdMs;
            long slowDeliveryThresholdMs = me.mSlowDeliveryThresholdMs;
            if (thresholdOverride > 0) {
                slowDispatchThresholdMs = thresholdOverride;
                slowDeliveryThresholdMs = thresholdOverride;
            }
            final boolean logSlowDelivery = (slowDeliveryThresholdMs > 0) && (msg.when > 0);
            final boolean logSlowDispatch = (slowDispatchThresholdMs > 0);

            final boolean needStartTime = logSlowDelivery || logSlowDispatch;
            final boolean needEndTime = logSlowDispatch;

            if (traceTag != 0 && Trace.isTagEnabled(traceTag)) {
                Trace.traceBegin(traceTag, msg.target.getTraceName(msg));
            }

            final long dispatchStart = needStartTime ? SystemClock.uptimeMillis() : 0;
            final long dispatchEnd;
            try {
                msg.target.dispatchMessage(msg);
                dispatchEnd = needEndTime ? SystemClock.uptimeMillis() : 0;
            } finally {
                if (traceTag != 0) {
                    Trace.traceEnd(traceTag);
                }
            }
            if (logSlowDelivery) {
                if (slowDeliveryDetected) {
                    if ((dispatchStart - msg.when) <= 10) {
                        Slog.w(TAG, "Drained");
                        slowDeliveryDetected = false;
                    }
                } else {
                    if (showSlowLog(slowDeliveryThresholdMs, msg.when, dispatchStart, "delivery",
                            msg)) {
                        // Once we write a slow delivery log, suppress until the queue drains.
                        slowDeliveryDetected = true;
                    }
                }
            }
            if (logSlowDispatch) {
                showSlowLog(slowDispatchThresholdMs, dispatchStart, dispatchEnd, "dispatch", msg);
            }

            if (logging != null) {
                logging.println("<<<<< Finished to " + msg.target + " " + msg.callback);
            }

            // Make sure that during the course of dispatching the
            // identity of the thread wasn't corrupted.
            final long newIdent = Binder.clearCallingIdentity();
            if (ident != newIdent) {
                Log.wtf(TAG, "Thread identity changed from 0x"
                        + Long.toHexString(ident) + " to 0x"
                        + Long.toHexString(newIdent) + " while dispatching to "
                        + msg.target.getClass().getName() + " "
                        + msg.callback + " what=" + msg.what);
            }

            msg.recycleUnchecked();
        }
    }

// Handler

public void dispatchMessage(Message msg) {
        if (msg.callback != null) {
            handleCallback(msg);
        } else {
            if (mCallback != null) {
                if (mCallback.handleMessage(msg)) {
                    return;
                }
            }
            handleMessage(msg);
        }
    }

   private static void handleCallback(Message message) {
        message.callback.run();
    }

//Message

 public static Message obtain(Handler h, Runnable callback) {
        Message m = obtain();
        m.target = h;
        m.callback = callback;

        return m;
    }

  • 大體一看磁玉,這個(gè)方法比較復(fù)雜停忿,我們來(lái)梳理一下。
  1. 首先蚊伞,判斷當(dāng)前ThreadLooper對(duì)象是否為null席赂,為null則拋出異常。
  2. 開啟死循環(huán)时迫,不斷通過MessageQueuenext()方法颅停,取出要執(zhí)行的 Message,如果 MessageQueue沒有Message了,則方法退出掠拳。
  3. 通過msg.target.dispatchMessage(msg)方法癞揉,進(jìn)行消息的分發(fā)。期間會(huì)進(jìn)行一些列判斷,先判斷msg.callback是不是null,若果是null烧董,直接調(diào)用callback.run()毁靶,那么這個(gè)callback是什么時(shí)候被賦值的呢?其實(shí)是在上述代碼中Message obtain(Handler h, Runnable callback)里面被賦值的逊移,如果msg.callbacknull,則判斷mCallback,如果mCallbacknull预吆,則會(huì)回調(diào)handleMessage(Message msg)方法,也就是我們非常熟悉的方法。如果mCallback不是null胳泉,則調(diào)用mCallback.handleMessage(Message msg)方法拐叉,還記得Handler兩個(gè)參數(shù)的構(gòu)造方法嗎?mCallback就是在那里賦值的扇商。
  4. 分發(fā)完畢凤瘦,通過msg.recycleUnchecked()Message回收,整個(gè)分發(fā)流程就結(jié)束了案铺。

總結(jié)

  • 一個(gè)線程只有一個(gè)Looper蔬芥,一個(gè)MessageQueue,可以有很多個(gè)Handler控汉。
  • 在子線程創(chuàng)建Handler笔诵,必須要先調(diào)用looper.prepare方法,同時(shí)需要調(diào)用looper.loop方法姑子,開啟死循環(huán)乎婿,不斷從MessageQueue取出Message并進(jìn)行分發(fā)。
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
  • 序言:七十年代末街佑,一起剝皮案震驚了整個(gè)濱河市谢翎,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌沐旨,老刑警劉巖森逮,帶你破解...
    沈念sama閱讀 216,997評(píng)論 6 502
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場(chǎng)離奇詭異希俩,居然都是意外死亡吊宋,警方通過查閱死者的電腦和手機(jī),發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 92,603評(píng)論 3 392
  • 文/潘曉璐 我一進(jìn)店門颜武,熙熙樓的掌柜王于貴愁眉苦臉地迎上來(lái)璃搜,“玉大人,你說(shuō)我怎么就攤上這事鳞上≌馕牵” “怎么了?”我有些...
    開封第一講書人閱讀 163,359評(píng)論 0 353
  • 文/不壞的土叔 我叫張陵篙议,是天一觀的道長(zhǎng)唾糯。 經(jīng)常有香客問我怠硼,道長(zhǎng),這世上最難降的妖魔是什么移怯? 我笑而不...
    開封第一講書人閱讀 58,309評(píng)論 1 292
  • 正文 為了忘掉前任香璃,我火速辦了婚禮,結(jié)果婚禮上舟误,老公的妹妹穿的比我還像新娘葡秒。我一直安慰自己,他們只是感情好嵌溢,可當(dāng)我...
    茶點(diǎn)故事閱讀 67,346評(píng)論 6 390
  • 文/花漫 我一把揭開白布眯牧。 她就那樣靜靜地躺著,像睡著了一般赖草。 火紅的嫁衣襯著肌膚如雪学少。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 51,258評(píng)論 1 300
  • 那天秧骑,我揣著相機(jī)與錄音版确,去河邊找鬼。 笑死乎折,一個(gè)胖子當(dāng)著我的面吹牛阀坏,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播笆檀,決...
    沈念sama閱讀 40,122評(píng)論 3 418
  • 文/蒼蘭香墨 我猛地睜開眼,長(zhǎng)吁一口氣:“原來(lái)是場(chǎng)噩夢(mèng)啊……” “哼盒至!你這毒婦竟也來(lái)了酗洒?” 一聲冷哼從身側(cè)響起,我...
    開封第一講書人閱讀 38,970評(píng)論 0 275
  • 序言:老撾萬(wàn)榮一對(duì)情侶失蹤枷遂,失蹤者是張志新(化名)和其女友劉穎樱衷,沒想到半個(gè)月后,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體酒唉,經(jīng)...
    沈念sama閱讀 45,403評(píng)論 1 313
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡矩桂,尸身上長(zhǎng)有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 37,596評(píng)論 3 334
  • 正文 我和宋清朗相戀三年,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了侄榴。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點(diǎn)故事閱讀 39,769評(píng)論 1 348
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡网沾,死狀恐怖癞蚕,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情辉哥,我是刑警寧澤桦山,帶...
    沈念sama閱讀 35,464評(píng)論 5 344
  • 正文 年R本政府宣布攒射,位于F島的核電站,受9級(jí)特大地震影響恒水,放射性物質(zhì)發(fā)生泄漏会放。R本人自食惡果不足惜,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 41,075評(píng)論 3 327
  • 文/蒙蒙 一钉凌、第九天 我趴在偏房一處隱蔽的房頂上張望咧最。 院中可真熱鬧,春花似錦甩骏、人聲如沸窗市。這莊子的主人今日做“春日...
    開封第一講書人閱讀 31,705評(píng)論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽(yáng)咨察。三九已至,卻和暖如春福青,著一層夾襖步出監(jiān)牢的瞬間摄狱,已是汗流浹背。 一陣腳步聲響...
    開封第一講書人閱讀 32,848評(píng)論 1 269
  • 我被黑心中介騙來(lái)泰國(guó)打工无午, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留媒役,地道東北人。 一個(gè)月前我還...
    沈念sama閱讀 47,831評(píng)論 2 370
  • 正文 我出身青樓宪迟,卻偏偏與公主長(zhǎng)得像酣衷,于是被迫代替她去往敵國(guó)和親。 傳聞我的和親對(duì)象是個(gè)殘疾皇子次泽,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 44,678評(píng)論 2 354

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