{"id":29175,"date":"2022-12-18T21:07:46","date_gmt":"2022-12-18T13:07:46","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=29175"},"modified":"2022-12-18T21:08:40","modified_gmt":"2022-12-18T13:08:40","slug":"weex-network-solutions","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/weex-network-solutions.html","title":{"rendered":"Weex\uff1a\u6ee1\u8db3\u4e07\u7269\u4e92\u8054\u7684\u79fb\u52a8\u7aef\u6280\u672f\u89e3\u51b3\u65b9\u6848"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u5728WOT2016\u79fb\u52a8\u4e92\u8054\u7f51\u6280\u672f\u5cf0\u4f1a\u4e0a\uff0c\u6dd8\u5b9d\u79fb\u52a8\u5e73\u53f0\u57fa\u7840\u5e73\u53f0\u90e8\u8d1f\u8d23\u4eba\u5434\u5fd7\u534e\u5206\u4eab\u4e86\u4e3b\u9898\u4e3a\u300aWeex:JS&Web\u80fd\u529b\u62d3\u5c55\u4e07\u7269\u4e92\u8054\u7684\u63a2\u7d22\u300b\u7684\u6f14\u8bb2\uff0c\u5177\u4f53\u5305\u62ecWeex\u9879\u76ee\u7b80\u4ecb\u3001\u7279\u70b9\u548c\u5f00\u53d1\u4f53\u9a8c\u4ee5\u53ca\u90a3\u4e9b\u963f\u91cc\u5df4\u5df4\u4e3a\u4ec0\u4e48\u8981\u505a\u548c\u600e\u4e48\u505aWeex\u80cc\u540e\u57fa\u4e8e\u4e1a\u754c\u8d8b\u52bf\u7684\u601d\u8003\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n
\u5609\u5bbe\u7b80\u4ecb<\/strong><\/div>\n

\"Weex\uff1a\u4e00\u4e2a\u5fd7\u5728\u6ee1\u8db3\u4e07\u7269\u4e92\u8054\u7684\u79fb\u52a8\u7aef\u6280\u672f\u89e3\u51b3\u65b9\u6848\"<\/p>\n

\u5434\u5fd7\u534e(\u963f\u91cc\u82b1\u540d\u5929\u65bd)<\/strong>\uff0c\u963f\u91cc\u5df4\u5df4\u8d44\u6df1\u65e0\u7ebf\u6280\u672f\u4e13\u5bb6\uff0c\u6dd8\u5b9d\u79fb\u52a8\u5e73\u53f0\u57fa\u7840\u5e73\u53f0\u90e8\u8d1f\u8d23\u4eba\uff0c\u56fd\u5185\u8f83\u65e9\u6295\u8eab\u79fb\u52a8\u6d6a\u6f6e\u7684\u8001\u53f8\u673a\uff0c\u53c2\u4e0e\u4e1a\u754c\u591a\u4e2a\u8d85\u7ea7 App \u67b6\u6784\u548c\u7814\u53d1\u5de5\u4f5c\uff0c2014\u5e74\u5e95\u52a0\u5165\u963f\u91cc\u5df4\u5df4\uff0c\u76ee\u524d\u8d1f\u8d23\u963f\u91cc\u79fb\u52a8\u57fa\u7840\u6280\u672f\u5e73\u53f0\u3001Weex \u9879\u76ee\u3001\u767e\u5ddd\u79fb\u52a8\u4e91\u7b49\u7814\u53d1\u5efa\u8bbe\u5de5\u4f5c\u3002Archsummit\u6df1\u57332015\u79fb\u52a8\u4e13\u9898\u4f18\u79c0\u51fa\u54c1\u4eba\u3001QCon\u4e0a\u6d772016 \u79fb\u52a8\u4e13\u9898\u51fa\u54c1\u4eba\u3002<\/p>\n

Weex\u9879\u76ee\u7684\u53d1\u5c55\u73b0\u72b6<\/strong><\/div>\n

Weex\u9879\u76ee\u662f\u4ee5Web\u7684\u65b9\u5f0f\u6765\u5f00\u53d1Native APP\uff0c\u9075\u5faaWrite once, run everywhere\u7684\u539f\u5219\u3002\u5b83\u5728\u963f\u91cc\u5185\u90e8\uff0c\u5df2\u7ecf\u4ece\u4e00\u4e2a\u6280\u672f\u9879\u76ee\u53d8\u6210\u4e00\u79cd\u6280\u672f\u751f\u6001\uff0c\u7531\u591a\u4e2a\u90e8\u95e8\u4e00\u8d77\u6765\u5b8c\u6210\u3002\u5434\u8001\u5e08\u6240\u5728\u56e2\u961f\u8d1f\u8d23Weex\u5185\u6838\u3001\u524d\u7aefJSFramework\uff0c\u5305\u62ec\u5de5\u5177\u4f53\u7cfb\u548c\u4e0b\u5c42\u7684V8\u5f15\u64ce\uff0cWeex\u5185\u6838\u7814\u53d1\u673a\u5236\u53ef\u4ee5\u6bd4\u80a9\u4e3b\u6d41\u6d4f\u89c8\u5668\u7684\u5185\u6838\u673a\u5236\uff0c\u8fd9\u662fWeex\u8ddf\u540c\u7c7b\u7ade\u54c1\u7684\u6700\u5927\u533a\u522b\u3002\u56e0\u4e3a\u540c\u884c\u6ca1\u6709\u505a\u4e16\u754c\u7ea7\u6d4f\u89c8\u5668\u7684\u7ecf\u9a8c\uff0c\u53ef\u80fd\u4e0d\u80fd\u5f88\u597d\u4fdd\u8bc1\u5185\u6838\u7684\u7a33\u5b9a\u6027\u7b49\uff0c\u800c\u8fd9\u5757Weex\u548c UC \u6d4f\u89c8\u5668\u6709\u5f88\u597d\u7684\u5408\u4f5c\u3002\u9664\u4e86\u524d\u7aef\u7684JS&Web\u6846\u67b6\uff0c\u4ed6\u4eec\u56e2\u961f\u7684\u6210\u5458\u8fd8\u5728\u505aUI\u5e93\uff0c\u5c31\u662f\u57fa\u4e8eSUI\u6709\u4e00\u4e2aWeex\u7248\u672cNEXT\uff0c\u4e0a\u9762\u6709\u8f7b\u91cf\u7ea7\u7684\u6846\u67b6\uff0c\u5bf9\u4e8e\u4e00\u4e9b\u5546\u5bb6\u4f1a\u63d0\u4f9b\u4f01\u4e1a\u7ea7\u7684\u89e3\u51b3\u65b9\u6848\u3002\u8fd8\u6709\u5c31\u662f\u79fb\u52a8\u7aef\u5b9e\u73b0\u4e92\u52a8\u7684\u80fd\u529b\uff0c\u6e38\u620f\u7684\u80fd\u529b\u30013D\u7684\u80fd\u529b\uff0cVR\u7684\u80fd\u529b\u7b49\u3002<\/p>\n

\u57fa\u4e8e\u8fd9\u4e9b\u65b9\u9762\uff0c\u963f\u91cc\u5df4\u5df4\u5df2\u7ecf\u521d\u6b65\u5f62\u6210\u4e86\u4e00\u4e2a\u6280\u672f\u751f\u6001\uff0c\u4ece\u6570\u636e\u4e0a\u6765\u770b\uff0c\u5f53\u4ed6\u4eec4\u670821\u65e5\u5ba3\u5e03\u5f00\u6e90\u5185\u6d4b\u7684\u5f53\u5929\u5c31\u6709\u5927\u91cf\u7684\u5f00\u53d1\u8005\u6d8c\u5165\uff0c\u4e24\u5468\u5185\u5c31\u67095000\u591a\u5f00\u53d1\u8005\u7533\u8bf7\u3002\u52306\u670830\u65e5\u6b63\u5f0f\u5f00\u6e90\u65f6\uff0cWeex\u5f53\u5929\u767b\u4e0agithub trending\u699c\u699c\u9996\uff0c\u5f00\u6e90\u7b2c\u4e00\u5468\u90fd\u5728trending\u699c\u4e0a\u3002\u622a\u6b628.26\u5df2\u7ecf\u8fbe\u52305500\u591a\u4e2aSTAR\u3002\u53e6\u5916\uff0c\u6574\u4e2a\u9879\u76ee\u4ece\u6765\u81ea\u5916\u90e8\u7684PR\u6765\u770b\uff0c\u6570\u636e\u4e0a500\u7684PR\uff0c\u6765\u81ea\u5916\u90e8\u5360\u52301\/5\u7684\u6bd4\u4f8b\u3002\u5f00\u53d1\u8005\u4e0e\u9879\u76ee\u7ec4\u6210\u5458\u7ecf\u5e38\u5728issue\u91cc\u8ba8\u8bba\u6280\u672f\u9700\u6c42\uff0c\u6709\u4e9b\u5df2\u7ecf\u5728\u516c\u53f8\u7684\u4e1a\u52a1\u6b63\u5f0f\u7528\u4e0aWeex\u5e76\u4e1a\u52a1\u5e76\u4e0a\u7ebf\u3002\u8fd9\u4e9b\u90fd\u8bf4\u660eWeex\u7684\u5f00\u6e90\u5df2\u7ecf\u521d\u6b65\u5f62\u6210\u4e00\u4e2a\u5065\u5eb7\u7684\u751f\u6001\u4f53\u7cfb\u3002<\/p>\n

Weex\u4e0e\u5f00\u53d1\u8005\u4f7f\u7528\u7684\u540c\u7c7b\u5de5\u5177\u76f8\u6bd4\u8f83\u7684\u6838\u5fc3\u7ade\u4e89\u529b<\/strong><\/div>\n

\u8c08\u5230Weex\u9879\u76ee\u4e0e\u7ade\u54c1\u7279\u70b9\u7684\u533a\u522b\u65f6\uff0c\u5434\u8001\u5e08\u4e3b\u8981\u8c08\u5230\u5982\u4e0b\u4e94\u70b9\uff1a<\/p>\n

\u7b2c\u4e00\uff0c\u4ed6\u4eec\u575a\u6301\u5728\u4e2d\u56fd\u7684\u4e92\u8054\u7f51\u73af\u5883\u4e0b\uff0c\u8ba9\u4e00\u4efd\u4ee3\u7801\u5728\u4e09\u4e2a\u7aef(Android\u3001iOS\u548cH5)\u7684\u8fd0\u884c\u4f53\u9a8c\u4e00\u81f4\uff0c\u5e2e\u52a9\u521b\u4e1a\u8005\u8282\u7701\u6210\u672c\u3002<\/p>\n

\u7b2c\u4e8c\uff0c\u771f\u6b63\u505a\u5230\u6d4f\u89c8\u5668\u5185\u6838\u7ea7\u7684\u7a33\u5b9a\u6027\u548c\u7814\u53d1\u673a\u5236\uff0c\u6700\u7ec8\u5b9e\u73b0\u53ef\u6536\u655b\u3002<\/p>\n

\u7b2c\u4e09\uff0c\u5b9e\u73b0\u9ad8\u6027\u80fd\u548c\u6301\u7eed\u7a33\u5b9a\u6027\u7684\u8fd0\u884c\u4fdd\u969c\u673a\u5236\u3002<\/p>\n

\u7b2c\u56db\uff0c\u662f\u5728\u4e2d\u56fd\u573a\u666f\u4e0b\uff0cWeex\u652f\u6301\u7075\u6d3b\u7684\u5d4c\u5165\u65b9\u5f0f\u3002\u5b83\u53ef\u4ee5\u662f\u4e00\u4e2a\u9875\u9762\uff0c\u4e5f\u53ef\u4ee5\u6784\u5efa\u4e00\u4e2aAPP\uff0c\u4e5f\u53ef\u4ee5\u6210\u4e3a\u4e00\u4e2a\u5185\u6838APP\u7684\u754c\u9762\u3002Weex\u56e2\u961f\u575a\u4fe1\u5728\u4e2d\u56fd\uff0c\u5148\u628a\u9875\u9762\u505a\u597d\uff0c\u518d\u505a\u597d\u6574\u4e2aAPP\uff0c\u5bf9\u5f00\u53d1\u8005\u5de5\u7a0b\u4f53\u7cfb\u548c\u65b0\u7684\u6846\u67b6\u5f71\u54cd\u5c06\u975e\u5e38\u5927\uff0c\u8fd9\u4e5f\u662f\u4ed6\u4eec\u7684\u6700\u5927\u4f18\u52bf\u3002<\/p>\n

\u6700\u540e\u4e00\u70b9\u662f\u963f\u91cc\u5df4\u5df4\u662f\u5168\u4e16\u754c\u8303\u56f4\u5185\u6700\u5927\u89c4\u6a21\u590d\u6742\u4e1a\u52a1\u573a\u666f\u4e0b\uff0c\u5e94\u7528\u79fb\u52a8\u5ba2\u6237\u7aef\u52a8\u6001\u5316\u6280\u672f\u7684\u516c\u53f8\uff0c\u65e0\u8bba\u662f\u624b\u6dd8\u822a\u6bcd\u8fd8\u662f\u96c6\u56e2APP\u6b63\u5904\u4e8e\u4e1a\u52a1\u9010\u6b65Weex\u5316\u7684\u9636\u6bb5\uff0c\u4eca\u5e74\u624b\u6dd8\u3001\u5929\u732b\u7684\u5927\u4fc3\u4f1a\u573a\u57fa\u672c\u4e5f\u90fd\u662f\u7531Weex\u6765\u627f\u8f7d\u3002\u7ecf\u8fc7\u8fd9\u534a\u5e74\u7684\u5b9e\u8df5\uff0c\u4e0d\u65ad\u5730\u5c1d\u8bd5\u548c\u653e\u5927\u5e94\u7528\u8303\u56f4\u3001\u590d\u6742\u5ea6\uff0cWeex\u9879\u76ee\u56e2\u961f\u5df2\u7ecf\u63a2\u5230\u4e86\u5e76\u89e3\u51b3\u4e86\u5728\u5927\u89c4\u6a21\u590d\u6742\u5e94\u7528\u573a\u666f\u7684\u4e00\u7cfb\u5217\u6280\u672f\u96be\u9898\uff0c\u53d1\u73b0\u4e86\u4e0d\u5c11\u540c\u7c7b\u7ade\u54c1\u6ca1\u6709\u53d1\u73b0\u548c\u89e3\u51b3\u7684\u95ee\u9898\u3002<\/p>\n

\u5982\u4f55\u66f4\u597d\u5730\u6ee1\u8db3\u7528\u6237\u7684\u8d2d\u7269\u4f53\u9a8c?<\/strong><\/div>\n

\u963f\u91cc\u6dd8\u5b9d\u7684\u53cc\u5341\u4e00\u5927\u4fc3\uff0c\u9762\u5bf9\u6d41\u91cf\u77ac\u53d1\u3001\u7f51\u7edc\u62e5\u5835\u548c\u5546\u6237\u7684\u9700\u6c42\uff0c\u7279\u522b\u662f\u5728\u79fb\u52a8\u7aef\u8d2d\u7269\u884c\u4e3a\u7684\u517b\u6210\u8fc7\u7a0b\u4e2d\uff0c\u5982\u4f55\u66f4\u597d\u5730\u6ee1\u8db3\u7528\u6237\u7684\u8d2d\u7269\u4f53\u9a8c?<\/strong><\/p>\n

\u5434\u8001\u5e08\u8bb2\u5230\u53cc\u5341\u4e00\u662f\u4e00\u4e2a\u5927\u4e8b\u4ef6\uff0c\u4ece\u5927\u7684\u5c42\u9762\u4e0a\u6765\u8bb2\uff0c\u8fd9\u4e24\u5e74\u6bd4\u8f83\u5173\u6ce8\u7684\u662f\u5f02\u5730\u591a\u6d3b\uff0c\u591a\u673a\u623f\uff0c\u5c31\u662f\u4e00\u4e2a\u673a\u623f\u600e\u4e48\u5207\u6362\u5230\u53e6\u4e00\u4e2a\u673a\u623f\u3002\u4e3e\u4f8b\u6765\u8bf4\uff0c2015\u5e74\uff0c\u5434\u8001\u5e08\u4e3b\u6301\u7684\u963f\u91cc\u7edf\u4e00\u7f51\u7edc\u63a5\u5165\u7684ACCS\u9879\u76ee\uff0c\u4ece\u6280\u672f\u5c42\u9762\u4e0a\u5206\u4e3a\u51e0\u4e2a\u65b9\u9762\uff1a\u7b2c\u4e00\u4e2a\u662f\u5728\u90e8\u7f72\u5c42\u9762\u7684\u5bb9\u707e\u3001\u5f02\u5730\u591a\u6d3b\u3002\u9488\u5bf9\u4ea4\u6613\u7684\u5355\u5143\u5316\u548c\u975e\u4ea4\u6613\u4e1a\u52a1\u7684\u5bb9\u707e\uff0c\u9632\u6b62\u6781\u7aef\u60c5\u51b5\u7684\u51fa\u73b0\u3002\u7b2c\u4e8c\u4e2a\uff0c\u652f\u6301\u5341\u4ebf\u7ea7\u8bbe\u5907\u63a5\u5165\u7684\u7f51\u7edc\u7edf\u4e00\u63a5\u5165\u5c42\u548c\u5bf9\u7a81\u53d1\u6d41\u91cf\u8bbe\u7f6e\u9632\u5237\u9650\u6d41\u673a\u5236\uff0c\u9632\u6b62\u6d41\u91cf\u987a\u53d1\u548c\u6076\u610f\u8bf7\u6c42\u3002\u7b2c\u4e09\u662f\u5ba2\u6237\u7aef\u5c42\u9762\u7684\u7075\u6d3b\u8bf7\u6c42\u7b56\u7565\u548c\u4e91\u7aef\u4e00\u4f53\u7684\u63a7\u5236\u80fd\u529b\uff0c\u5728\u6781\u7aef\u60c5\u51b5\u53ef\u4ee5\u5bf9\u5ba2\u6237\u7aef\u8bf7\u6c42\u9891\u7387\u548c\u7b56\u7565\u8fdb\u884c\u63a7\u5236\uff0c\u5728\u5c3d\u91cf\u4fdd\u8bc1\u9ad8\u4f18\u5148\u7ea7\u8bf7\u6c42\u7684\u524d\u63d0\u4e0b\u8fdb\u884c\u67d4\u6027\u5904\u7406\u3002<\/p>\n

\u8fd8\u6709\u79fb\u52a8\u7aef\u8d2d\u7269\u8fd9\u5757\uff0c\u4eca\u5e74\u4ed6\u4eec\u5c1d\u8bd5\u6bd4\u8f83\u591a\uff0c\u76ee\u7684\u662f\u901a\u8fc7\u4e00\u4e2a\u65b0\u7684\u4e92\u52a8\u5f62\u5f0f\u8ba9\u5927\u5bb6\u6709\u4e0d\u4e00\u6837\u7684\u4e92\u52a8\u8d2d\u7269\u4f53\u9a8c\uff0c\u4f7f\u4eba\u548c\u4eba\u4e4b\u95f4\u7684\u8ddd\u79bb\u62c9\u5f97\u66f4\u8fd1\uff0c\u65e2\u53ef\u4ee5\u770b\u5230\u4e3b\u64ad\u5c55\u793a\u5546\u54c1\uff0c\u8ddf\u5927\u5bb6\u4e92\u52a8\uff0c\u53c8\u5728\u5185\u90e8\u901a\u8fc7\u5f88\u591a\u6280\u672f\u5b9e\u73b0\u6765\u4fdd\u8bc1\u7528\u6237\u8d2d\u7269\u7684\u987a\u7545\u4f53\u9a8c\u3002\u5177\u4f53\u6d89\u53ca\u7684\u6280\u672f\u6709\uff1a<\/p>\n

1.\u4fdd\u8bc1\u8d2d\u7269\u8fc7\u7a0b\u7684\u6027\u80fd\u548c\u7a33\u5b9a\u6027\uff0c\u76f8\u5173\u6307\u6807\u6709\u542f\u52a8\u5230\u9996\u9875\u6e32\u67d3\u5b8c\u6210\u7684\u65f6\u95f4\u5206\u5e03\u5360\u6bd4\u3001Crash\u7387\u3001\u9875\u9762\u6253\u5f00\u7684\u8017\u65f6\u3001\u5185\u5b58\u3001\u5e27\u7387\u3002<\/p>\n

2.\u7f51\u7edc\u4f20\u8f931\u79d2\u949f\u6cd5\u5219\u548c\u8bf7\u6c42\u6210\u529f\u7387\u6301\u7eed\u4f18\u5316\uff0c\u4fdd\u969c\u7f51\u7edc\u4f20\u8f93\u7684\u53ef\u9760\u5fc5\u8fbe\u3002<\/p>\n

3.H5\u548cWeex\u7684\u79d2\u5f00\uff0c\u63d0\u4f9b\u7528\u6237\u4f53\u9a8c\u548c\u63d0\u9ad8\u901f\u5ea6\u3002<\/p>\n

4.\u591a\u5a92\u4f53\u548c\u76f4\u64ad\u7b49\u5185\u5bb9\u5347\u7ea7\u3001buy+\u7b49\u521b\u65b0\u63a2\u7d22\uff0c\u5e26\u7ed9\u7528\u6237\u4e0d\u4e00\u6837\u7684\u8d2d\u7269\u4f53\u9a8c\u3002<\/p>\n

5.\u6700\u540e\u5c31\u662f\u6dd8\u5b9d\u8c08\u5f97\u6bd4\u8f83\u591a\u7684\u793e\u533a\u5316\u548c\u5185\u5bb9\u5316\uff0c\u8ba9\u6d88\u8d39\u8005\u5728\u8d2d\u7269\u7684\u540c\u65f6\u8d2d\u7269\u51b3\u7b56\u66f4\u591a\u6837\u5316\u3002<\/p>\n

\u56e2\u961f\u9047\u5230\u7684\u91cd\u8981\u6280\u672f\u66f4\u65b0\u548c\u6280\u672f\u96be\u70b9<\/strong><\/div>\n

\"weex\"<\/p>\n

\u5728Weex\u9879\u76ee\u7684\u5f00\u53d1\u8fc7\u7a0b\u4e2d\uff0cWeex\u9879\u76ee\u9047\u5230\u7684\u91cd\u8981\u6280\u672f\u66f4\u65b0\u5305\u62ec\uff1a<\/p>\n

1.\u6027\u80fd\u8fed\u4ee3\u4f18\u5316\u3002\u6301\u7eed\u4e00\u5e74\u7684\u6027\u80fd\u8fed\u4ee3\uff0c\u7eac\u5ea6\u7ec6\u5316\u5230\u542f\u52a8\u3001\u9996\u5c4f\u6e32\u67d3\u3001\u6eda\u52a8\u5e27\u7387\u3001\u5185\u5b58\u53ca\u589e\u91cf\u3001CPU\u5cf0\u503c\/\u5747\u503c\/\u9759\u9ed8\uff0c\u540c\u65f6\u9488\u5bf9 Android\/iOS\u7684\u4f4e\/\u4e2d\/\u9ad8\u7aef\u673a\u4e0d\u540c\u673a\u578b\u591a\u6b21\u8fed\u4ee3\u4f18\u5316\u6027\u80fd\uff0c\u786e\u4fdd\u5373\u4f7f\u5728Android \u4f4e\u7aef\u673a\u4e0a\u4e5f\u80fd\u62e5\u6709\u63a5\u8fd1native\u7684\u4f53\u9a8c\u3002<\/p>\n

2.\u524d\u7aef\u8bed\u6cd5\u7684\u6301\u7eed\u8fed\u4ee3\u3002\u8bed\u6cd5\u7cd6\u548c\u80fd\u529b\u66f4\u4e30\u5bcc\uff0c\u66f4\u65b9\u4fbf\u5f00\u53d1\u8005\uff0c\u65b0\u589e\u652f\u6301inline event\u3001\u57fa\u4e8eWebPack\u7684loader\u673a\u5236\u3001computedproperty\u3001repeat\u8bed\u6cd5\u6269\u5c55\u7b49\u3002<\/p>\n

3.\u9875\u9762\u7ea7\u5bfc\u822a\u65b9\u6848\u3002\u901a\u8fc7Weex Navigator\u7ec4\u4ef6\uff0c\u652f\u6301\u5927\u89c4\u6a21\u7ebf\u4e0a\u6d3b\u52a8\u95f4\u7684\u8df3\u8f6c;\u901a\u8fc7TabBar\u63d0\u5347\u9875\u9762\u5207\u6362\u7684\u4f53\u9a8c\u3002<\/p>\n

4.\u8c03\u8bd5\u5de5\u5177Devtool\uff1a\u901a\u8fc7 Chrome Devtool\u76f4\u63a5\u8c03\u8bd5 Weex Android\/iOS\u4ee3\u7801\uff0c\u652f\u6301 Element(BoxModel\/NativeView)\u3001Console log\u3001Network\u3001ScreenCast;\u540c\u65f6\u652f\u6301\u591a\u8bbe\u5907\u548c\u591a APP \u540c\u65f6\u8c03\u8bd5\uff0c\u652f\u6301JS\u4ee3\u7801\u65ad\u70b9\u8c03\u8bd5\u3002<\/p>\n

\u540c\u65f6\uff0c\u5434\u8001\u5e08\u8be6\u7ec6\u5206\u4eab\u4e86\u5176\u4e2d\u4e00\u4e2a\u91cd\u8981\u7684\u6280\u672f\u89e3\u51b3\u65b9\u6848\uff1a\u9875\u9762\u7ea7\u5bfc\u822a\u65b9\u6848<\/strong><\/p>\n

\u521d\u59cb\u9009\u62e9<\/strong>\uff1a\u5728\u5355\u9875\u591a\u89c6\u56fe\u5bfc\u822a\u548c\u591a\u9875\u9762\u5bfc\u822a\u4e4b\u95f4\uff0c\u9879\u76ee\u7ec4\u9009\u62e9\u4f18\u5148\u5b9e\u73b0\u591a\u9875\u9762\u5bfc\u822a\uff0c\u66f4\u52a0\u7b26\u5408\u5927\u89c4\u6a21\u5e94\u7528\u7684\u573a\u666f\uff0c\u51cf\u5c11\u9875\u9762\u95f4\u7684\u8026\u5408\uff0c\u63d0\u5347\u6574\u4f53\u7684\u7a33\u5b9a\u6027\u3002<\/p>\n

\u6280\u672f\u65b9\u6848\u5305\u62ec\uff1a<\/p>\n

1.\u5bfc\u822a\u63a7\u5236\u5668<\/p>\n

(1)NavigationBar:\u6808\u5f0f\u5bfc\u822a\uff0c\u652f\u6301 push\/pop\uff0c\u53ef\u5b9a\u5236\u7684NavigationBar\u6837\u5f0f\u3002<\/p>\n

(2)TabBar:\u5f15\u5165embed\u7ec4\u4ef6\uff0c\u652f\u6301\u5185\u5d4c\u591a\u7ea7Weex container instance(\u4ee5\u4e0b\u7b80\u79f0 instance)\uff0c\u5b9e\u73b0\u53ef\u7531\u524d\u7aef\u81ea\u5b9a\u4e49\u7684TabBar\u7ec4\u4ef6\uff0c\u4e14instance\u4e4b\u95f4\u53ef\u76f8\u4e92\u901a\u8baf;TabBar\u5177\u6709\u9ad8\u5ea6\u7684\u53ef\u5b9a\u5236\u6027\uff0c\u591a\u7ea7tab\u9875\u9762\u5bf9\u5e94\u7684\u6e90\u6587\u4ef6\u5206\u79bb\u5e76\u53ef\u6309\u9700\u52a0\u8f7d\u3002<\/p>\n

2.\u5e94\u7528\u751f\u547d\u5468\u671f<\/p>\n

(1)\u4ece\u9875\u9762\u7684\u7ef4\u5ea6\u8003\u8651\uff0c\u57fa\u672c\u53ef\u5206\u4e3ainit\u3001ready\u3001viewappear\u3001viewdisappear\u548cdestroy\u51e0\u4e2a\u5173\u952e\u65f6\u95f4\u8282\u70b9\u3002<\/p>\n

(2)\u4ece\u5e94\u7528\u89d2\u5ea6\u8003\u8651\uff0c\u53c8\u4f1a\u878d\u5165\u524d\u540e\u53f0\u76f8\u5173foreground\u3001background\u4ee5\u53ca\u5185\u5b58\u76f8\u5173memoryWarning\u7b49\uff0c\u9700\u8981\u66b4\u9732\u4ee5\u4e0a\u6ce8\u518c\u63a5\u53e3\u7ed9\u524d\u7aef\u6765\u505a\u5fc5\u8981\u7684\u64cd\u4f5c\u3002<\/p>\n

3. \u6570\u636e\u901a\u8baf<\/p>\n

(1)\u901a\u8fc7\u6d88\u606f\u5206\u53d1\u7684\u65b9\u5f0f\uff0c\u5efa\u7acb\u6d88\u606f\u76d1\u542c\u6a21\u5f0f\uff0c\u4f18\u70b9\u662f\u9694\u79bb\u6027\u6bd4\u8f83\u597d\uff0c\u65e0\u9700\u5173\u6ce8\u5bf9\u8c61\u7684\u4e0a\u4e0b\u6587\uff0c\u6bd4\u8f83\u9002\u5408\u591a\u7ea7\u9875\u9762\u4e4b\u95f4\u8fdb\u884c\u901a\u8baf\u3002<\/p>\n

(2)\u5efa\u7acb instance \u4e4b\u95f4\u4e0a\u4e0b\u6587\u4e4b\u95f4\u7684\u5173\u7cfb\uff0c\u9002\u5408\u5185\u5d4cinstance\u7684\u573a\u666f\u3002<\/p>\n

Weex\u9879\u76ee\u5f88\u5927\u7684\u6280\u672f\u96be\u70b9\u662f\u5927\u89c4\u6a21\u590d\u6742\u573a\u666f\u4e0b\u7684\u6027\u80fd\u548c\u7a33\u5b9a\u6027\u4fdd\u969c\u3001\u6301\u7eed\u7684\u4e09\u7aef\u4f53\u9a8c\u4e00\u81f4\u7684\u4fdd\u969c\u673a\u5236\uff0c\u5c24\u5176\u662f\u53cc\u5341\u4e00\u573a\u666f\u4e0bWeex\u7684\u7a33\u5b9a\u6027\u3002<\/p>\n

\u8fd9\u4e2a\u5176\u5b9e\u662f\u4e00\u4e2a\u590d\u6742\u7684\u7cfb\u7edf\u5de5\u7a0b\u95ee\u9898\uff0c\u4eceV8\/JSCore\u5f15\u64ce\u7684\u4f18\u5316\uff0c\u4ecenative\u5c42\u6027\u80fd\u8c03\u4f18\u518d\u5230\u4e0a\u5c42\u7684JSFrm\u6846\u67b6\u7684\u6027\u80fd\u548c\u6613\u7528\u6027\uff0c\u914d\u5957CI\u548c\u81ea\u52a8\u5316\u6d4b\u8bd5\u673a\u5236\u3002\u9879\u76ee\u7ec4\u5e0c\u671b\u5efa\u7acb\u4e00\u5957\u7c7b\u4f3cWebkit\u5185\u6838\u7684\u6027\u80fd\u7a33\u5b9a\u6027\u4fdd\u969c\u673a\u5236\uff0c\u4fdd\u969c\u4e09\u7aef\u4f53\u9a8c\u4e00\u81f4\u7684\u673a\u5236(\u6e32\u67d3\u3001\u6392\u7248\u4f53\u9a8c\u4e00\u81f4\uff0c\u63d0\u4f9b\u56fe\u5f62\u5316\u81ea\u52a8\u5bf9\u6bd4\u80fd\u529b)\u3001\u524d\u7aef\u6846\u67b6\u914d\u5957\u7684Profile\u3001Lint\u3001\u5185\u5b58\u6cc4\u9732\u6392\u67e5\u5de5\u5177\uff0c\u5728Weex\u5efa\u7acb\u8d77\u6765\u4e00\u5957\u81ea\u52a8\u5316\u7684\u5e73\u53f0\u7814\u53d1\u4fdd\u969c\u673a\u5236\u3002\u8fd9\u6837\u624d\u80fd\u4fdd\u969cWeex\u7c7b\u4f3cWebKit\u4e00\u6837\u80fd\u591f\u6301\u7eed\u4ea4\u4ed8\u7a33\u5b9a\u53ef\u9760\u7684\u7248\u672c\uff0c\u8fd9\u4e2a\u4e5f\u662fWeex\u8ddf\u7ade\u54c1\u5728\u7406\u5ff5\u4e0a\u7684\u5927\u5dee\u5f02\uff0c\u53ef\u4ee5\u8d70\u7684\u66f4\u7a33\u5065\u4e00\u4e9b\u3002<\/p>\n

\u672a\u67651-2\u5e74\uff0cWeex\u9879\u76ee\u7684\u53d1\u5c55\u76ee\u6807<\/strong><\/div>\n

Weex\u9879\u76ee\u7684\u53d1\u5c55\u76ee\u6807\u5206\u4e3a\u4e24\u4e2a\u65b9\u9762\uff0c\u5bf9\u5185\u548c\u5bf9\u5916\uff0c\u5bf9\u5185\u7684\u4e00\u4e2a\u57fa\u672c\u76ee\u6807\u662f\u57288-12\u6708\uff0c\u963f\u91cc\u5df4\u5df4\u79fb\u52a8\u4e1a\u52a1\u5168\u90e8\u5b9e\u73b0Weex\u5316\u3002\u5e0c\u671bWeex\u80fd\u529b\u4e0d\u4ec5\u4ec5\u5c40\u9650\u5728\u624b\u673a\u7aef\uff0c\u4e5f\u80fd\u591f\u62d3\u5c55\u5230\u4e07\u7269\u4e92\u8054\u591a\u4e2a\u8bbe\u5907\u7aef\u3002\u5bf9\u5916\u6765\u770b\uff0cWeex\u80fd\u4e0d\u80fd\u6210\u4e3a\u4e1a\u754c\u771f\u6b63\u503c\u5f97\u4fe1\u8d56\uff0c\u771f\u6b63\u88ab\u5f00\u53d1\u8005\u8ba4\u53ef\u7684\u79fb\u52a8\u7aef\u8de8\u5e73\u53f0\u7684\u89e3\u51b3\u65b9\u6848\uff0c\u8fd9\u4e2a\u6311\u6218\u4e5f\u5f88\u5927\u3002\u5b9e\u73b0\u8fc7\u7a0b\u662f\u628a\u8fc7\u53bb\u524d\u7aef\u4f18\u79c0\u7684\u57fa\u7840\u80fd\u529b\u3001\u5de5\u7a0b\u4f53\u7cfb\u5b8c\u5168\u7ee7\u627f\u5230\u79fb\u52a8\u7aef\uff0c\u628a\u6574\u4e2a\u4e00\u5957\u65b9\u6848\u5f00\u6e90\u5f00\u653e\u7ed9\u4e1a\u754c\uff0c\u548c\u4e1a\u754c\u5f00\u53d1\u8005\u4e00\u8d77\u6765\u5171\u5efa\uff0c\u8ffd\u8e2a\u5e76\u8fc7\u6e21\u6210\u4e1a\u754c\uff0c\u6700\u7ec8\u5c06Weex\u5efa\u8bbe\u6210\u4e3a\u5927\u5bb6\u4fe1\u8d56\u7684\u4e07\u7269\u4e92\u8054\u8bbe\u5907\u7684\u6280\u672f\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n

\n

\u539f\u6587\u6765\u81ea\uff1ahttp:\/\/os.51cto.com\/art\/201608\/516518.htm<\/a><\/p>\n

\u672c\u6587\u5730\u5740\uff1ahttp:\/\/lrxjmw.cn\/weex-network-solutions.html<\/a>\u7f16\u8f91\u5458\uff1a\u5e38\u6d25\uff0c\u5ba1\u6838\u5458\uff1a\u82cf\u897f\u4e91<\/span><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"

2016\u5e748\u670826-27\u65e5\uff0c\u753151CTO.com\u4e3b\u529e\u7684\u3010WOT2016\u79fb\u52a8\u4e92\u8054\u7f51\u6280\u672f\u5cf0\u4f1a\u3011\u5728\u5317\u4eac\u7ca4\u8d22JW\u4e07\u8c6a\u9152\u5e97\u9686\u91cd\u53ec\u5f00\u3002\u81ea2012\u5e74\u4ee5\u6765\uff0cWOT\u54c1\u724c\u5927\u4f1a\u79c9\u627f\u4e13\u6ce8\u6280\u672f\u3001\u670d\u52a1\u6280\u672f\u4eba\u5458\u7684\u7406\u5ff5\u5df2\u7ecf\u6210\u529f\u4e3e\u529e\u5341\u4e00\u5c4a\uff0c\u4e0d\u4ec5\u79ef\u7d2f\u4e86\u5927\u91cf\u7684\u4e13\u5bb6\u8d44\u6e90\uff0c\u66f4\u83b7\u5f97\u5e7f\u5927IT\u4ece\u4e1a\u8005\u548c\u6280\u672f\u7231\u597d\u8005\u7684\u8ba4\u53ef\u548c\u597d\u8bc4\uff0c\u5e76\u6210\u4e3a\u4e1a\u754c\u91cd\u8981\u7684\u6280\u672f\u5206\u4eab\u53ca\u4eba\u8109\u62d3\u5c55\u5e73\u53f0\u3002<\/p>\n","protected":false},"author":63,"featured_media":30136,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[21],"tags":[],"class_list":["post-29175","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/29175","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=29175"}],"version-history":[{"count":16,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/29175\/revisions"}],"predecessor-version":[{"id":259554,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/29175\/revisions\/259554"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/30136"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=29175"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=29175"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=29175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}