{"id":5342,"date":"2024-09-19T10:01:01","date_gmt":"2024-09-19T02:01:01","guid":{"rendered":""},"modified":"2024-09-19T10:01:01","modified_gmt":"2024-09-19T02:01:01","slug":"\u5173\u65ad\u5ef6\u65f6\u5b9a\u65f6\u5668_\u5b9a\u65f6\u5668\u4f7f\u7528\u65b9\u6cd5","status":"publish","type":"post","link":"https:\/\/mushiming.com\/5342.html","title":{"rendered":"\u5173\u65ad\u5ef6\u65f6\u5b9a\u65f6\u5668_\u5b9a\u65f6\u5668\u4f7f\u7528\u65b9\u6cd5"},"content":{"rendered":"

\n <\/path> \n<\/svg> <\/p>\n

QT\u5ef6\u65f6\/\u7b49\u5f85\/\u5b9a\u65f6\u5668\u600e\u4e48\u5199\uff1f\u5927\u6982\u5206\u4e3a\u4e24\u7c7b\uff0c\u4e00\u4e2a\u662f\u975e\u963b\u585e\u5ef6\u65f6\uff0c\u4e00\u4e2a\u662f\u963b\u585e\u5ef6\u65f6\uff0c\u8fd9\u91cc\u505a\u4e00\u4e2a\u5c0f\u7ed3\uff0c\u7b2c\u4e09\u79cd\u8017\u65f6\u65b9\u6cd5\u7528\u7684\u8f83\u5c11<\/p>\n


\n

\u4e00\u3001\u963b\u585e\u578b\u5ef6\u65f6<\/strong>
Qt\u4e00\u822c\u4f7f\u7528QThread::sleep()\u6765\u5ef6\u65f6\uff0c\u4f46\u662f\u8fd9\u6837\u4f1a\u963b\u585e\u4f4f\u7ebf\u7a0b\uff0c\u4f53\u9a8c\u592a\u5dee\uff0c\u8fd9\u6837\u53ea\u53ef\u4ee5\u7528\u5728\u5b50\u7ebf\u7a0b\u4e2d\u3002<\/p>\n

QThread:<\/span>:<\/span>msleep<\/span>(<\/span>50<\/span>)<\/span>;<\/span>\/\/\u963b\u585e\u5ef6\u65f650ms<\/span> <\/code><\/pre>\n

\u6216\u8005\u4f7f\u7528\u5b9a\u65f6\u5668\uff1a<\/p>\n

void<\/span> Delay_MSec_Suspend<\/span>(<\/span>unsigned<\/span> int<\/span> msec)<\/span> { \n   <\/span> QTime _Timer =<\/span> QTime:<\/span>:<\/span>currentTime<\/span>(<\/span>)<\/span>.<\/span>addMSecs<\/span>(<\/span>msec)<\/span>;<\/span> while<\/span>(<\/span> QTime:<\/span>:<\/span>currentTime<\/span>(<\/span>)<\/span> <<\/span> _Timer )<\/span>;<\/span> }<\/span> <\/code><\/pre>\n

\u4e8c\u3001\u975e\u963b\u585e\u578b\u5ef6\u65f6<\/strong>
\u5728\u7b49\u5f85\u4e2d\uff0c\u4e0d\u65ad\u5f3a\u5236\u8fdb\u5165\u5f53\u524d\u7ebf\u7a0b\u7684\u4e8b\u4ef6\u5faa\u73af\uff0c\u8fd9\u6837\u53ef\u4ee5\u628a\u5835\u585e\u7684\u4e8b\u4ef6\u90fd\u5904\u7406\u6389\uff0c\u4ece\u800c\u907f\u514d\u7a0b\u5e8f\u5361\u6b7b
\u53ef\u4ee5\u5904\u7406\u672c\u7ebf\u7a0b\u7684\u4e8b\u4ef6\u5faa\u73af<\/p>\n

void<\/span> Widget:<\/span>:<\/span>sleep<\/span>(<\/span>unsigned<\/span> int<\/span> msec)<\/span> { \n   <\/span> QTime dieTime =<\/span> QTime:<\/span>:<\/span>currentTime<\/span>(<\/span>)<\/span>.<\/span>addMSecs<\/span>(<\/span>msec)<\/span>;<\/span> while<\/span>(<\/span> QTime:<\/span>:<\/span>currentTime<\/span>(<\/span>)<\/span> <<\/span> dieTime )<\/span> { \n   <\/span> QCoreApplication:<\/span>:<\/span>processEvents<\/span>(<\/span>QEventLoop:<\/span>:<\/span>AllEvents,<\/span> 100<\/span>)<\/span>;<\/span> \/\/\u8fd9\u6761\u8bed\u53e5\u80fd\u591f\u4f7f\u7a0b\u5e8f\u5728while\u7b49\u5f85\u671f\u95f4\uff0c\u53bb\u5904\u7406\u4e00\u4e0b\u672c\u7ebf\u7a0b\u7684\u4e8b\u4ef6\u5faa\u73af\uff0c\u5904\u7406\u4e8b\u4ef6\u5faa\u73af\u6700\u591a100ms\u5fc5\u987b\u8fd4\u56de\u672c\u8bed\u53e5\uff0c<\/span> \/\/\u5982\u679c\u63d0\u524d\u5904\u7406\u5b8c\u6bd5\uff0c\u5219\u7acb\u5373\u8fd4\u56de\u8fd9\u6761\u8bed\u53e5\u3002\u8fd9\u4e5f\u5c31\u5bfc\u81f4\u4e86\u8be5Delay_MSec\u51fd\u6570\u7684\u5b9a\u65f6\u8bef\u5dee\u53ef\u80fd\u9ad8\u8fbe100ms\u3002<\/span> }<\/span> }<\/span> <\/code><\/pre>\n

\u6216\u8005\u4f7f\u7528\u5b50\u4e8b\u4ef6\u5faa\u73af\uff0c\u5728\u5b50\u4e8b\u4ef6\u5faa\u73af\u4e2d\uff0c\u7236\u4e8b\u4ef6\u5faa\u73af\u4ecd\u7136\u662f\u53ef\u4ee5\u6267\u884c\u7684<\/p>\n

void<\/span> Delay_MSec<\/span>(<\/span>unsigned<\/span> int<\/span> msec)<\/span> { \n   <\/span> QEventLoop loop;<\/span>\/\/\u5b9a\u4e49\u4e00\u4e2a\u65b0\u7684\u4e8b\u4ef6\u5faa\u73af<\/span> QTimer:<\/span>:<\/span>singleShot<\/span>(<\/span>msec,<\/span> &<\/span>loop,<\/span> SLOT<\/span>(<\/span>quit<\/span>(<\/span>)<\/span>)<\/span>)<\/span>;<\/span>\/\/\u521b\u5efa\u5355\u6b21\u5b9a\u65f6\u5668\uff0c\u69fd\u51fd\u6570\u4e3a\u4e8b\u4ef6\u5faa\u73af\u7684\u9000\u51fa\u51fd\u6570<\/span> loop.<\/span>exec<\/span>(<\/span>)<\/span>;<\/span>\/\/\u4e8b\u4ef6\u5faa\u73af\u5f00\u59cb\u6267\u884c\uff0c\u7a0b\u5e8f\u4f1a\u5361\u5728\u8fd9\u91cc\uff0c\u76f4\u5230\u5b9a\u65f6\u65f6\u95f4\u5230\uff0c\u672c\u5faa\u73af\u88ab\u9000\u51fa<\/span> }<\/span> <\/code><\/pre>\n

\u4e09\u3001\u8017\u65f6\u4ee3\u7801<\/strong>
\u4f8b\u5982\u540e\u53f0\u9700\u8981\u8f7d\u5165\u56fe\u7247\uff0cGUI\u54cd\u5e94\u592a\u5361\uff0c\u53ef\u4ee5\u4f7f\u7528\u8fd9\u79cd\u65b9\u6cd5<\/p>\n

for<\/span>(<\/span>i=<\/span>0<\/span>;<\/span> i <<\/span> <\/span>;<\/span> i++<\/span>)<\/span> { \n   <\/span> \/\/QCoreApplication::processEvents(QEventLoop::AllEvents); <\/span> \/\/\u53bb\u5904\u7406\u672c\u7ebf\u7a0b\u7684\u4e8b\u4ef6\u5faa\u73af\uff0c\u907f\u514d\u672c\u7ebf\u7a0b\u88ab\u5835\u585e<\/span> QCoreApplication:<\/span>:<\/span>processEvents<\/span>(<\/span>QEventLoop:<\/span>:<\/span>AllEvents,<\/span> 5<\/span>)<\/span>;<\/span> \/\/\u5982\u679c\u4e0d\u591f\u9891\u7e41\uff0c\u53ef\u4ee5\u589e\u52a0\u7b2c\u4e8c\u53c2\u6570\u6765\u7f13\u89e3\u5361\u987f<\/span> for<\/span>(<\/span>j=<\/span>0<\/span>;<\/span> j <<\/span> <\/span>;<\/span> j++<\/span>)<\/span> { \n   <\/span> \/\/QCoreApplication::processEvents(QEventLoop::AllEvents);<\/span> \/\/\u5904\u7406\u4e8b\u4ef6\u5faa\u73af\uff0c\u4e0d\u5efa\u8bae\u653e\u5728\u8fd9\u91cc\uff0c\u53ef\u80fd\u8fc7\u4e8e\u9891\u7e41<\/span> doSomeThing<\/span>(<\/span>)<\/span>;<\/span> }<\/span> }<\/span> <\/code><\/pre>\n

\u4e00\u822c\u6765\u8bf4\uff0cprocessEvents()\u4e0d\u5b9c\u88ab\u8c03\u7528\u7684\u8fc7\u4e8e\u9891\u7e41\uff0c\u4e5f\u4e0d\u5b9c\u88ab\u8c03\u7528\u7684\u4e0d\u591f\u9891\u7e41\u3002\u8fc7\u4e8e\u9891\u7e41\u7684\u8bdd\uff0c\u4e00\u65b9\u9762\u4f1a\u4f7f\u7ebf\u7a0b\u7684\u54cd\u5e94\u66f4\u597d\uff0c\u4f46\u53e6\u4e00\u65b9\u9762\u4f1a\u5bfc\u81f4\u539f\u672c\u5c31\u8017\u65f6\u7684\u4efb\u52a1\u53d8\u5f97\u66f4\u52a0\u8017\u65f6\uff1b\u4e0d\u591f\u9891\u7e41\u7684\u8bdd\uff0c\u663e\u7136\u53ef\u80fd\u4f1a\u4f7fGUI\u7ebf\u7a0b\u7684\u54cd\u5e94\u53d8\u5dee\uff0c\u4f8b\u5982\u6bcf500ms\u624d\u88ab\u8c03\u7528\u4e00\u6b21\uff0c\u90a3\u4e48GUI\u7684\u4e8b\u4ef6\u5faa\u73af\u5c31\u53ea\u80fd500ms\u624d\u88ab\u5904\u7406\u4e00\u6b21\uff0c\u5f53\u7136\uff0c\u8fd9\u4e2a\u95ee\u9898\u53ef\u4ee5\u901a\u8fc7\u8bbe\u5b9aprocessEvents()\u7684\u7b2c\u4e8c\u4e2a\u5f62\u53c2\u7565\u5fae\u5f97\u5230\u7f13\u89e3\uff0c\u66f4\u597d\u7684\u505a\u6cd5\u662f\uff0c\u4fdd\u8bc1\u88ab\u8c03\u7684\u5468\u671f<200ms\uff08\u518d\u5c0f\u4e00\u4e9b\u66f4\u597d\uff0c\u770b\u7a0b\u5e8f\u9700\u6c42\uff09\uff0c\u8fd9\u6837\u4e0d\u81f3\u4e8e\u8089\u773c\u53ef\u89c1\u7684\u5361\u987f\u3002<\/p>\n

\u526f\u4f5c\u7528\uff1a\uff08\u7279\u522b\u6ce8\u610f\uff01\uff09<\/p>\n

1\u3001\u5728\u70b9\u51fb\u6309\u94ae\u4e4b\u540e\uff0c\u8fd9\u4e2a20s\u7684\u8017\u65f6\u4efb\u52a1\u5f00\u59cb\u6267\u884c\uff0c\u5c1a\u672a\u6267\u884c\u5b8c\u6bd5\u65f6\uff0c\u6211\u4eec\u70b9\u51fb\u4e86GUI\u7684\u5173\u95ed\u6309\u94ae\uff0c\u90a3\u4e48GUI\u4f1a\u7acb\u5373\u6d88\u5931\uff0c\u4f46\u662f\u8fd9\u4e2a\u8017\u65f6\u4efb\u52a1\u4ecd\u7136\u4f1a\u5728\u540e\u53f0\u6267\u884c\uff0c\u76f4\u5230\u6267\u884c\u5b8c\u6bd5\uff0c\u8fdb\u7a0b\u624d\u4f1a\u9000\u51fa\u3002\u89e3\u51b3\u529e\u6cd5\uff1a\u91cd\u5199\u5173\u95ed\u4e8b\u4ef6\uff0c\u5728\u5173\u95ed\u4e8b\u4ef6\u7684\u51fd\u6570\u4e2d\u76f4\u63a5\u7ed3\u675f\u8fdb\u7a0b\u3002
2\u3001\u5728\u70b9\u51fb\u6309\u94ae\u4e4b\u540e\uff0c\u8fd9\u4e2a20s\u7684\u8017\u65f6\u4efb\u52a1\u5f00\u59cb\u6267\u884c\uff0c\u6267\u884c\u5230\u7b2c5\u79d2\u65f6\uff0c\u6211\u4eec\u518d\u6b21\u70b9\u51fb\u4e86\u8fd9\u4e2a\u6309\u94ae\uff0c\u90a3\u4e48QT\u53c8\u4f1a\u6267\u884c\u4e00\u4e2a\u65b0\u768420s\u4efb\u52a1\uff0c\u8fd9\u4e2a\u65b0\u4efb\u52a1\u5b8c\u6210\u540e\uff0c\u53c8\u4f1a\u63a5\u7740\u628a\u7b2c\u4e00\u4e2a20s\u4efb\u52a1\u4ece\u4e0a\u6b21\u88ab\u6253\u65ad\u7684\u7b2c5\u79d2\u7ee7\u7eed\u6267\u884c\u3002\u5982\u679c\u8fd9\u4e2a\u4efb\u52a1\u662f\u53ef\u91cd\u5165\u7684\uff0c\u540e\u679c\u4ec5\u4ec5\u662f\u88ab\u6267\u884c\u4e86\u4e24\u904d\uff0c\u5982\u679c\u4efb\u52a1\u4e0d\u53ef\u91cd\u5165\uff0c\u90a3\u60c5\u51b5\u5c31\u5f7b\u5e95\u7cdf\u7cd5\u4e86\u3002\u89e3\u51b3\u529e\u6cd5\uff1a\u70b9\u51fb\u6309\u94ae\u540e\u628a\u8fd9\u4e2a\u6309\u94aedisable\u6389\uff0c\u6267\u884c\u5b8c\u518denable<\/p>\n


\n

\u5b9a\u65f6\u5668\u7684\u4e24\u79cd\u65b9\u6cd5<\/strong>
\u4e00\u3001QObject\u4e2d\u7684\u5b9a\u65f6\u5668\u7684\u4f7f\u7528<\/strong>
1\u3001 int QObject::startTimer ( int interval ) ;<\/p>\n

\u8fd9\u4e2a\u662f\u5f00\u542f\u4e00\u4e2a\u5b9a\u65f6\u5668\u7684\u51fd\u6570\uff0c\u4ed6\u7684\u53c2\u6570interval\u662f\u6beb\u79d2\u7ea7\u522b\u3002\u5f53\u5f00\u542f\u6210\u529f\u540e\u4f1a\u8fd4\u56de\u8fd9\u4e2a\u5b9a\u65f6\u5668\u7684ID, \u5e76\u4e14\u6bcf\u9694interval \u65f6\u95f4\u540e\u4f1a\u8fdb\u5165timerEvent \u51fd\u6570\u3002\u76f4\u5230\u5b9a\u65f6\u5668\u88ab\u6740\u6b7b\u3002<\/p>\n

2\u3001 void QObject::timerEvent ( QTimerEvent * event );<\/p>\n

\u5f53\u5b9a\u65f6\u5668\u8d85\u65f6\u540e\uff0c\u4f1a\u8fdb\u5165\u8be5\u4e8b\u4ef6timerEvent\u51fd\u6570,\u9700\u8981\u91cd\u5199timerEvent\u51fd\u6570\uff0c\u5728\u51fd\u6570\u4e2d\u901a\u8fc7\u5224\u65adevent->timerId()\u6765\u786e\u5b9a\u5b9a\u65f6\u5668,\u7136\u540e\u6267\u884c\u67d0\u4e2a\u5b9a\u65f6\u5668\u7684\u8d85\u65f6\u51fd\u6570\u3002<\/p>\n

3\u3001 void QObject::killTimer ( int id );<\/p>\n

\u901a\u8fc7\u4ecestartTimer\u8fd4\u56de\u7684ID\u4f20\u5165killTimer \u51fd\u6570\u4e2d\u6740\u6b7b\u5b9a\u65f6\u5668\uff0c\u7ed3\u675f\u5b9a\u65f6\u5668\u8fdb\u5165\u8d85\u65f6\u5904\u7406\u3002<\/p>\n

\u4ee5\u4e0b\u662fQObject\u4e2d\u7684\u5b9a\u65f6\u5668\u5177\u4f53\u4f7f\u7528\u7b80\u5355\u4f8b\u5b50\uff1a<\/p>\n

#define<\/span> _MYTIMER_H<\/span> #include<\/span> <QObject><\/span><\/span> class MyTimer :<\/span> public QObject { \n   <\/span> Q_OBJECT public:<\/span> MyTimer<\/span>(<\/span>QObject*<\/span> parent =<\/span> NULL<\/span>)<\/span>;<\/span> ~<\/span>MyTimer<\/span>(<\/span>)<\/span>;<\/span> void<\/span> handleTimeout<\/span>(<\/span>)<\/span>;<\/span> \/\/\u8d85\u65f6\u5904\u7406\u51fd\u6570<\/span> virtual void<\/span> timerEvent<\/span>(<\/span> QTimerEvent *<\/span>event)<\/span>;<\/span> private:<\/span> int<\/span> m_nTimerID;<\/span> }<\/span>;<\/span> #endif<\/span> <\/span>\/\/_MYTIMER_H<\/span> <\/code><\/pre>\n
#include<\/span> \"mytimer.h\"<\/span><\/span> #include<\/span><QDebug><\/span> <\/span> #include<\/span> <QTimerEvent><\/span><\/span> #define<\/span> TIMER_TIMEOUT (5*1000)<\/span> MyTimer:<\/span>:<\/span>MyTimer<\/span>(<\/span>QObject *<\/span>parent)<\/span> :<\/span>QObject<\/span>(<\/span>parent)<\/span> { \n   <\/span> m_nTimerID =<\/span> this-><\/span>startTimer<\/span>(<\/span>TIMER_TIMEOUT)<\/span>;<\/span> }<\/span> MyTimer:<\/span>:<\/span>~<\/span>MyTimer<\/span>(<\/span>)<\/span> { \n   <\/span> }<\/span> void<\/span> MyTimer:<\/span>:<\/span>timerEvent<\/span>(<\/span>QTimerEvent *<\/span>event)<\/span> { \n   <\/span> if<\/span>(<\/span>event-><\/span>timerId<\/span>(<\/span>)<\/span> ==<\/span> m_nTimerID)<\/span>{ \n   <\/span> handleTimeout<\/span>(<\/span>)<\/span>;<\/span> }<\/span> }<\/span> void<\/span> MyTimer:<\/span>:<\/span>handleTimeout<\/span>(<\/span>)<\/span> { \n   <\/span> qDebug<\/span>(<\/span>)<\/span><<<\/span>\"Enter timeout processing function\\n\"<\/span>;<\/span> killTimer<\/span>(<\/span>m_nTimerID)<\/span>;<\/span> }<\/span> <\/code><\/pre>\n

\u4e8c\uff1a\u4f7f\u7528QTimer\u5b9a\u65f6\u5668\u7c7b<\/strong><\/p>\n

1\u3001 \u9996\u5148\u521b\u5efa\u4e00\u4e2a\u5b9a\u65f6\u5668\u7c7b\u7684\u5bf9\u8c61<\/p>\n

QTimer *timer = new QTimer(this);<\/p>\n

2\u3001 timer \u8d85\u65f6\u540e\u4f1a\u53d1\u51fatimeout()\u4fe1\u53f7\uff0c\u6240\u4ee5\u5728\u521b\u5efa\u597d\u5b9a\u65f6\u5668\u5bf9\u8c61\u540e\u7ed9\u5176\u5efa\u7acb\u4fe1\u53f7\u4e0e\u69fd<\/p>\n

connect(timer, SIGNAL(timeout()), this, SLOT(onTimeout()));<\/p>\n

3\u3001 \u5728\u9700\u8981\u5f00\u542f\u5b9a\u65f6\u5668\u7684\u5730\u65b9\u8c03\u7528void QTimer::start ( int msec );<\/p>\n

\u8fd9\u4e2astart\u51fd\u6570\u53c2\u6570\u4e5f\u662f\u6beb\u79d2\u7ea7\u522b\uff1b<\/p>\n

timer->start(msec );<\/p>\n

4\u3001 \u5728\u81ea\u5df1\u7684\u8d85\u65f6\u69fd\u51fd\u6570\u91cc\u9762\u505a\u8d85\u65f6\u5904\u7406\u3002<\/p>\n

\u4ee5\u4e0b\u662fQTimer\u5b9a\u65f6\u5668\u7c7b\u5177\u4f53\u4f7f\u7528\u7b80\u5355\u4f8b\u5b50\uff1a<\/p>\n

#ifndef<\/span> _MYTIMER_H<\/span> #define<\/span> _MYTIMER_H<\/span> #include<\/span> <QObject><\/span><\/span> class QTimer;<\/span> class MyTimer :<\/span> public QObject { \n   <\/span> Q_OBJECT public:<\/span> MyTimer<\/span>(<\/span>QObject*<\/span> parent =<\/span> NULL<\/span>)<\/span>;<\/span> ~<\/span>MyTimer<\/span>(<\/span>)<\/span>;<\/span> public slots:<\/span> void<\/span> handleTimeout<\/span>(<\/span>)<\/span>;<\/span> \/\/\u8d85\u65f6\u5904\u7406\u51fd\u6570<\/span> private:<\/span> QTimer *<\/span>m_pTimer;<\/span> }<\/span>;<\/span> #endif<\/span> <\/span>\/\/_MYTIMER_H<\/span> <\/code><\/pre>\n
#include<\/span> \"mytimer.h\"<\/span><\/span> #include<\/span><QDebug><\/span> <\/span> #include<\/span> <QTimer><\/span><\/span> #define<\/span> TIMER_TIMEOUT (5*1000)<\/span> MyTimer:<\/span>:<\/span>MyTimer<\/span>(<\/span>QObject *<\/span>parent)<\/span> :<\/span>QObject<\/span>(<\/span>parent)<\/span> { \n   <\/span> m_pTimer =<\/span> new QTimer<\/span>(<\/span>this)<\/span>;<\/span> connect<\/span>(<\/span>m_pTimer,<\/span> SIGNAL<\/span>(<\/span>timeout<\/span>(<\/span>)<\/span>)<\/span>,<\/span> this,<\/span> SLOT<\/span>(<\/span>handleTimeout<\/span>(<\/span>)<\/span>)<\/span>)<\/span>;<\/span> m_pTimer-><\/span>start<\/span>(<\/span>TIMER_TIMEOUT)<\/span>;<\/span> }<\/span> MyTimer:<\/span>:<\/span>~<\/span>MyTimer<\/span>(<\/span>)<\/span> { \n   <\/span> }<\/span> void<\/span> MyTimer:<\/span>:<\/span>handleTimeout<\/span>(<\/span>)<\/span> { \n   <\/span> qDebug<\/span>(<\/span>)<\/span><<<\/span>\"Enter timeout processing function\\n\"<\/span>;<\/span> if<\/span>(<\/span>m_pTimer-><\/span>isActive<\/span>(<\/span>)<\/span>)<\/span>{ \n   <\/span> m_pTimer-><\/span>stop<\/span>(<\/span>)<\/span>;<\/span> }<\/span> }<\/span> <\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"\u5173\u65ad\u5ef6\u65f6\u5b9a\u65f6\u5668_\u5b9a\u65f6\u5668\u4f7f\u7528\u65b9\u6cd5QT\u5ef6\u65f6\/\u7b49\u5f85\u600e\u4e48\u5199\uff1f\u5927\u6982\u5206\u4e3a\u4e24\u7c7b\uff0c\u4e00\u4e2a\u662f\u975e\u963b\u585e\u5ef6\u65f6\uff0c\u4e00\u4e2a\u662f\u963b\u585e\u5ef6\u65f6\uff0c\u8fd9\u91cc\u505a\u4e00\u4e2a\u5c0f\u7ed3\uff0c\u7b2c\u4e09...","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"_links":{"self":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/5342"}],"collection":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/comments?post=5342"}],"version-history":[{"count":0,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/5342\/revisions"}],"wp:attachment":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/media?parent=5342"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/categories?post=5342"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/tags?post=5342"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}