{"id":202544,"date":"2020-10-13T09:00:33","date_gmt":"2020-10-13T01:00:33","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=202544"},"modified":"2020-10-08T21:46:41","modified_gmt":"2020-10-08T13:46:41","slug":"common-omissions-by-developers","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/common-omissions-by-developers.html","title":{"rendered":"\u5f00\u53d1\u4eba\u5458\u5e38\u89c1\u758f\u5ffd"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u60f3\u8ba9\u4e8b\u60c5\u5c3d\u5584\u5c3d\u7f8e\u662f\u5f88\u6b63\u5e38\u7684\u5fc3\u6001\u3002\u7136\u800c\uff0c\u5f53\u8fdb\u884c\u4efb\u52a1\u8f6c\u6362\u65f6\uff0c\u6211\u4eec\u6709\u65f6\u4f1a\u5fd8\u8bb0\u4e00\u4e9b\u91cd\u8981\u7684\u4e8b\u60c5\u2014\u2014\u4ee3\u7801\u8d28\u91cf\uff0c\u4ee5\u53ca\u4f5c\u4e3a\u4e00\u540d\u7a0b\u5e8f\u5458\u7684\u6210\u957f\u3002\u5728\u6211\u4eec\u72af\u4e0b\u7684\u4f17\u591a\u201c\u7f6a\u5b7d\u201d\u4e4b\u4e2d\uff0c\u56e0\u5306\u5fd9\u800c\u9020\u6210\u7684\u9519\u8bef\u5b9e\u5728\u65e0\u53ef\u539a\u975e\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"\"<\/p>\n

\u8bdd\u867d\u5982\u6b64\uff0c\u6211\u4eec\u4e5f\u5fc5\u987b\u5bfb\u627e\u673a\u4f1a\uff0c\u6df1\u547c\u5438\uff0c\u653e\u6162\u811a\u6b65\u3002\u5f53\u89c9\u5f97\u65f6\u95f4\u4e0d\u591f\u65f6\uff0c\u8981\u5c0f\u5fc3\u4e0d\u8981\u51fa\u73b0\u4ee5\u4e0b\u8fd9\u4e9b\u91cd\u5927\u9519\u8bef\u3002<\/p>\n

\u672a\u8bfb\u53d6\u8db3\u591f\u4ee3\u7801<\/strong><\/div>\n

\u4f60\u6709\u6ca1\u6709\u5728\u7535\u5f71\u91cc\u770b\u5230\u8fc7\u8fd9\u79cd\u753b\u9762\uff1a\u4e00\u4e2a\u7a0b\u5e8f\u5458\u76ef\u7740\u5c4f\u5e55\u770b\u4e86\u597d\u51e0\u5206\u949f\uff0c\u5374\u4e00\u7b79\u83ab\u5c55\u3002\u6ca1\u6709\u7535\u5f71\u8fd9\u6837\u62cd\u2014\u2014\u7535\u5f71\u5e38\u5851\u9020\u8fd9\u6837\u7684\u60c5\u8282\uff1a\u7a0b\u5e8f\u5458\u98de\u901f\u952e\u5165\u4e00\u4e9b\u5185\u5bb9\uff0c\u7136\u540e\u95ee\u9898\u8fce\u5203\u800c\u89e3\u3002\u9057\u61be\u7684\u662f\uff0c\u771f\u6b63\u7684\u65e5\u5e38\u5de5\u4f5c\u5e76\u975e\u90a3\u4e48\u5149\u9c9c\u4eae\u4e3d\u3002<\/p>\n

\u6211\u4eec\u9700\u8981\u9605\u8bfb\u6570\u4e0d\u80dc\u6570\u7684\u4ee3\u7801\u3002\u6b64\u5916\uff0c\u6211\u4eec\u8fd8\u5e94\u8be5\u4e86\u89e3\u5b83\u7684\u4f5c\u7528\u548c\u539f\u7406\u3002<\/p>\n

\u6765\u81ea\u4e92\u8054\u7f51\u7684\u968f\u673a\u4ee3\u7801<\/strong><\/div>\n

\u4ee3\u7801\u8bfb\u53d6\u4e0d\u591f\u4f1a\u5bfc\u81f4\u5f88\u591a\u60c5\u51b5\u3002\u4f60\u4e0a\u4e00\u6b21\u5728\u7f51\u4e0a\u67e5\u627e\u7b54\u6848\uff0c\u6bd4\u5982\u5728\u5806\u6808\u6ea2\u51fa(Stack Overflow)\u4e0a\u627e\u5230\u4e00\u4e2a\u4ee3\u7801\u7247\u6bb5\uff0c\u7136\u540e\u590d\u5236\u7c98\u8d34\u5b83\uff0c\u662f\u4ec0\u4e48\u65f6\u5019?\u6211\u53ef\u80fd\u5c31\u662f\u8fd9\u5468\u3002<\/p>\n

\u4eceSO\u83b7\u53d6\u7684\u4ee3\u7801\u6709\u5f88\u5927\u53ef\u80fd\u6709\u6548\uff0c\u4f46\u4f60\u662f\u5426\u4e86\u89e3\u5b83\u7684\u4f5c\u7528\u3001\u539f\u7406\u4ee5\u53ca\u5c40\u9650\u6027?\u5b83\u8db3\u591f\u5b89\u5168\u5417?\u5b83\u5982\u4f55\u5e94\u5bf9\u8fb9\u7f18\u60c5\u51b5\u548c\u4f60\u7684\u9700\u6c42?<\/p>\n

\u6709\u65f6\uff0c\u4f60\u4e0d\u5f97\u4e0d\u7c98\u8d34\u4ee3\u7801\uff0c\u5e76\u7948\u7977\u5b83\u80fd\u6b63\u5e38\u8fd0\u884c\u3002\u65f6\u95f4\u6709\u9650\uff0c\u6709\u4e9b\u4e8b\u60c5\u8fc7\u4e8e\u590d\u6742\uff0c\u96be\u4ee5\u6349\u6478\u3002\u4f46\u901a\u5e38\uff0c\u4f60\u53ef\u4ee5\u572815-30\u5206\u949f\u5185\u641e\u61c2\u4ee3\u7801\u3002\u5bf9\u4e8e\u653e\u5165\u9879\u76ee\u4e2d\u7684\u4ee3\u7801\uff0c\u4f60\u5e94\u8be5\u786e\u4fe1\u81ea\u5df1\u8db3\u591f\u4e86\u89e3\uff0c\u5426\u5219\u53ef\u80fd\u4f1a\u5371\u53ca\u9879\u76ee\u7684\u5b89\u5168\u6027\u548c\u53ef\u7ef4\u62a4\u6027\u3002<\/p>\n

\u9879\u76ee\u4e2d\u7684\u4ee3\u7801<\/strong><\/div>\n

\u8bfb\u53d6\u81ea\u5df1\u9879\u76ee\u4e2d\u7684\u4ee3\u7801\u611f\u89c9\u5982\u4f55?\u4f60\u88ab\u53eb\u53bb\u4fee\u590d\u7684\u95ee\u9898\u6b63\u597d\u662f\u4e0d\u719f\u6089\u7684\u4e00\u90e8\u5206\uff0c\u4e0d\u5e78\u4e2d\u7684\u4e07\u5e78\uff0c\u4f60\u9884\u611f\u5230\u5e76\u8bd5\u56fe\u7acb\u5373\u4fee\u590d\u5b83\u3002\u4fee\u590d\u8d77\u6548\u4e86\uff0c\u4f60\u63a8\u8fdb\u4e86\u8fd9\u79cd\u53d8\u66f4\uff0c\u4e00\u5207\u56de\u5230\u6b63\u8f68\u3002<\/p>\n

\u8fd9\u79cd\u9519\u8bef\u540e\u60a3\u65e0\u7a77\u3002\u5982\u679c\u4f60\u4e0d\u719f\u6089\u57fa\u7840\u4ee3\u7801\u800c\u4e14\u6ca1\u6709\u8fdb\u884c\u6d4b\u8bd5\uff0c\u90a3\u4e48\u8fdb\u884c\u4fee\u590d\u65f6\u4e0d\u9020\u6210\u4efb\u4f55\u7834\u574f\u5e76\u80fd\u89e3\u51b3\u6240\u6709\u95ee\u9898\u5c31\u6210\u4e86\u5929\u65b9\u591c\u8c2d\u3002\u5728\u8bd5\u56fe\u89e3\u51b3\u95ee\u9898\u4e4b\u524d\uff0c\u4f60\u603b\u9700\u8981\u5f04\u6e05\u539f\u59d4\u3002\u53ea\u662f\u968f\u610f\u8c03\u8bd5\u662f\u6ca1\u6709\u7528\u7684\u3002\u53ef\u80fd\u4f1a\u8d70\u8fd0\u4e00\u4e24\u6b21\uff0c\u4f46\u8fdf\u65e9\u4f1a\u9020\u6210\u5927\u9ebb\u70e6\u3002<\/p>\n

\u5e93\u4e2d\u7684\u4ee3\u7801<\/strong><\/div>\n

\u542f\u52a8\u9879\u76ee\u65f6\u9ed8\u8ba4\u8981\u6dfb\u52a0\u591a\u5c11\u4e2a\u5e93?\u4f60\u786e\u5b9a\u5b83\u4eec\u662f\u5fc5\u9700\u7684\u5e76\u4e86\u89e3\u5b83\u4eec\u662f\u5982\u4f55\u5b9e\u73b0\u7684\u5417?\u6211\u5e76\u4e0d\u662f\u5728\u4e3a\u4e0d\u4f7f\u7528\u4ee3\u7801\u5e93\u548c\u6846\u67b6\u505a\u8fa9\u62a4\u3002\u53ea\u8981\u6709\u53ef\u80fd\uff0c\u5c31\u5e94\u8be5\u4f7f\u7528\u7ecf\u8fc7\u9a8c\u8bc1\u548c\u826f\u597d\u6d4b\u8bd5\u7684\u4ee3\u7801\u3002\u201c\u91cd\u590d\u53d1\u660e\u8f66\u8f6e\u201d\u5f88\u5e38\u89c1\uff0c\u4f46\u4e0d\u8fc7\u662f\u591a\u6b64\u4e00\u4e3e\uff0c\u4e14\u5f0a\u5927\u4e8e\u5229\u3002<\/p>\n

\u4e86\u89e3\u4f60\u6b63\u5728\u4f7f\u7528\u7684\u5de5\u5177\u6709\u76ca\u65e0\u5bb3\u3002\u5e38\u7528\u5e93\u901a\u5e38\u662f\u4f18\u79c0\u7684\u8f6f\u4ef6\uff0c\u7814\u7a76\u5b83\u4eec\u7684\u57fa\u7840\u4ee3\u7801\uff0c\u4f60\u4f1a\u53d7\u76ca\u826f\u591a\u3002\u8fd9\u4f1a\u5e2e\u52a9\u4f60\u6210\u4e3a\u4e00\u4e2a\u66f4\u719f\u7ec3\u7684\u5f00\u53d1\u4eba\u5458\uff0c\u6216\u8005\u81f3\u5c11\u8ba9\u4f60\u610f\u8bc6\u5230\u4f60\u5e76\u4e0d\u9700\u8981\u67d0\u4e2a\u7279\u5b9a\u7684\u5e93\u3002\u4e0d\u5fc5\u5206\u6790\u4f7f\u7528\u8fc7\u7684\u6bcf\u4e00\u4e2a\u5e93\uff0c\u4f46\u5f53\u4f60\u4e0d\u65ad\u91cd\u590d\u4f7f\u7528\u67d0\u4e2a\u5e93\u65f6\uff0c\u4f60\u5c31\u6709\u5fc5\u8981\u4e86\u89e3\u5b83\u662f\u5982\u4f55\u8fd0\u4f5c\u7684\u3002<\/p>\n

\u8bfb\u53d6\u4f18\u8d28\u4ee3\u7801\u80fd\u8ba9\u4f60\u6210\u4e3a\u66f4\u597d\u7684\u5f00\u53d1\u4eba\u5458\uff0c\u5e76\u5e2e\u52a9\u4f60\u7406\u89e3\u81ea\u5df1\u7684\u4ea7\u54c1\u3002\u4f60\u6216\u8bb8\u8ba4\u4e3a\u81ea\u5df1\u6ca1\u6709\u65f6\u95f4\u8bfb\u53d6\u4ee3\u7801\uff0c\u4e8b\u5b9e\u5e76\u975e\u5982\u6b64\u3002\u719f\u6089\u4ea7\u54c1\u4ee3\u7801\u6709\u52a9\u4e8e\u52a0\u5feb\u7f16\u7801\u901f\u5ea6\uff0c\u591a\u8bfb\u53d6\u5176\u4ed6\u4ee3\u7801\u6709\u5229\u4e8e\u4f5c\u4e3a\u4e00\u540d\u5f00\u53d1\u4eba\u5458\u7684\u6210\u957f\u3002\u56e0\u6b64\uff0c\u4ece\u957f\u8fdc\u6765\u770b\uff0c\u8bfb\u53d6\u4ee3\u7801\u53ef\u4ee5\u8282\u7701\u65f6\u95f4\uff0c\u800c\u975e\u6d6a\u8d39\u65f6\u95f4\u3002<\/p>\n

\u4ee3\u7801\u672a\u91cd\u6784<\/strong><\/div>\n

\u4f60\u9700\u8981\u5b9e\u73b0\u4e00\u4e2a\u529f\u80fd\uff0c\u4f46\u60c5\u51b5\u7d27\u6025\uff0c\u5e78\u597d\u4f60\u77e5\u9053\u5982\u4f55\u5feb\u901f\u6784\u5efa\u6b64\u529f\u80fd\u3002\u4e8e\u662f\u4f60\u6295\u5165\u5176\u4e2d\uff0c\u8f93\u5165\u4e00\u4e9b\u542b\u7cca\u7684\u4ee3\u7801\uff0c\u4e00\u5207\u4f3c\u4e4e\u90fd\u5f88\u987a\u5229\uff0c\u95ee\u9898\u4e5f\u8fce\u5203\u800c\u89e3\u3002\u662f\u65f6\u5019\u5f80\u524d\u63a8\u8fdb\u4e86\u3002<\/p>\n

\u5927\u9519\u7279\u9519!\u5f53\u4f60\u5f00\u59cb\u7f16\u7801\u5374\u4e0d\u8003\u8651\u5176\u4ed6\u9009\u62e9\uff0c\u53ea\u575a\u6301\u8981\u7528\u7b2c\u4e00\u7248\u89e3\u51b3\u65b9\u6848\u65f6\uff0c\u4f60\u7684\u4ee3\u7801\u662f\u6709\u7f3a\u9677\u7684\u3002\u5b83\u53ef\u80fd\u6548\u7387\u4f4e\u4e0b\u3001\u4e0d\u53ef\u8bfb\u6216\u4e0d\u53ef\u7ef4\u62a4\u3002\u6700\u7cdf\u7cd5\u7684\u65f6\u5019\uff0c\u4e09\u79cd\u60c5\u51b5\u4f1a\u540c\u65f6\u51fa\u73b0\uff0c\u5bfc\u81f4\u95ee\u9898\u65e0\u6cd5\u89e3\u51b3\u3002<\/p>\n

\u901f\u6218\u901f\u51b3\u5f88\u8bf1\u4eba\uff0c\u4f46\u4e00\u540d\u51fa\u8272\u5f00\u53d1\u5458\u7684\u6807\u5fd7\u662f\u521b\u5efa\u9ad8\u8d28\u91cf\u7684\u4ee3\u7801\u5e76\u6539\u8fdb\u5176\u6240\u6d89\u53ca\u7684\u57fa\u7840\u4ee3\u7801\u3002\u82e5\u4e00\u4e2a\u65b0\u9879\u76ee\u4e2d\uff0c\u6240\u6709\u4eba\u90fd\u53ea\u60f3\u5c3d\u5feb\u63a8\u51fa\u65b0\u529f\u80fd\uff0c\u90a3\u4e48\u8be5\u9879\u76ee\u6ce8\u5b9a\u4f1a\u4ea7\u751f\u5de8\u5927\u7684\u6280\u672f\u503a\u52a1\u3002\u968f\u7740\u65f6\u95f4\u63a8\u79fb\uff0c\u9879\u76ee\u4f1a\u53d8\u5f97\u8d8a\u6765\u8d8a\u96be\u4ee5\u7ef4\u62a4\uff0c\u5f00\u53d1\u4eba\u5458\u7684\u5de5\u4f5c\u6548\u7387\u4e5f\u5c06\u505c\u6ede\u4e0d\u524d\u3002<\/p>\n

\u6539\u8fdb\u4ee3\u7801\u662f\u56e2\u961f\u4e2d\u6bcf\u4e2a\u5f00\u53d1\u4eba\u5458\u7684\u8d23\u4efb\u3002\u6240\u4ee5\uff0c\u5b9e\u73b0\u65b0\u529f\u80fd\u4e00\u5b9a\u8981\u820d\u5f97\u82b1\u65f6\u95f4\u3002\u8003\u8651\u5230\u5de5\u4f5c\u7684\u526f\u4f5c\u7528\uff0c\u4ee5\u53ca\u5bf9\u901a\u7528\u5e94\u7528\u67b6\u6784\u7684\u9002\u5e94\uff0c\u4f60\u5e94\u8be5\u59cb\u7ec8\u8ba9\u57fa\u7840\u4ee3\u7801\u4fdd\u6301\u6bd4\u521d\u59cb\u66f4\u597d\u7684\u72b6\u6001\u3002\u4e45\u800c\u4e45\u4e4b\uff0c\u5b83\u4e0d\u4ec5\u80fd\u52a0\u5feb\u5f00\u53d1\u901f\u5ea6\uff0c\u8fd8\u80fd\u8ba9\u4f60\u6210\u4e3a\u4e00\u540d\u66f4\u719f\u7ec3\u7684\u7a0b\u5e8f\u5458\u3002<\/p>\n

\u4ee3\u7801\u672a\u6d4b\u8bd5<\/strong><\/div>\n

\u6709\u591a\u5c11\u6b21\uff0c\u4f60\u5e76\u672a\u51c6\u5907\u786e\u4fdd\u529f\u80fd\u6b63\u5e38\u8fd0\u4f5c\u7684\u6d4b\u8bd5\u5c31\u521b\u5efa\u4e86\u529f\u80fd?\u8fd9\u79cd\u505a\u6cd5\u5f88\u5e38\u89c1\u2014\u2014\u5c24\u5176\u662f\u5728\u9700\u8981\u5feb\u901f\u8fdb\u884c\u7684\u9879\u76ee\u4e2d\u3002\u4eba\u4eba\u90fd\u89c9\u5f97\u6d4b\u8bd5\u6d6a\u8d39\u4e86\u5b9d\u8d35\u65f6\u95f4\uff0c\u6240\u4ee5\u4ed6\u4eec\u4e0d\u5f97\u4e0d\u91cd\u542f\u8fdb\u5ea6\uff0c\u8fd9\u6c38\u65e0\u6b62\u5883\u3002<\/p>\n

\u4e8b\u5b9e\u4e0a\uff0c\u5bf9\u4e8e\u4efb\u4f55\u751f\u547d\u5468\u671f\u8f83\u957f\u6216\u6709\u5f85\u53d1\u5c55\u7684\u9879\u76ee\uff0c\u4e0d\u8bba\u4f60\u7684\u4ee3\u7801\u6709\u591a\u4e48\u4f18\u79c0\uff0c\u6d4b\u8bd5\u90fd\u81f3\u5173\u91cd\u8981\u3002\u66f4\u7cdf\u7cd5\u7684\u662f\uff0c\u6709\u4eba\u4f1a\u5bf9\u4e0d\u540c\u7684\u4ee3\u7801\u90e8\u5206\u8fdb\u884c\u66f4\u6539\uff0c\u8fd9\u5c31\u4f1a\u7834\u574f\u4f60\u7684\u529f\u80fd\u3002\u6ca1\u6709\u6d4b\u8bd5\uff0c\u4f60\u5c31\u65e0\u6cd5\u5f97\u77e5\u8fd9\u4e9b\u3002\u6b63\u786e\u7684\u6d4b\u8bd5\u63d0\u4f9b\u4e86\u5b89\u5168\u6027\uff0c\u5b83\u4eec\u8ba9\u4f60\u53ef\u4ee5\u653e\u5fc3\u5730\u5728\u4ee3\u7801\u4e2d\u8fdb\u884c\u66f4\u6539\u3002<\/p>\n

\u4f60\u53ef\u80fd\u89c9\u5f97\u6d4b\u8bd5\u6d6a\u8d39\u65f6\u95f4\u6d6a\u8d39\u91d1\u94b1\uff0c\u4f46\u4e8b\u5b9e\u6070\u6070\u76f8\u53cd\uff0c\u672a\u6765\u7684\u81ea\u5df1\u548c\u5176\u4ed6\u5f00\u53d1\u4eba\u5458\u90fd\u5c06\u611f\u8c22\u4f60\u7f16\u5199\u4e86\u6709\u7528\u7684\u6d4b\u8bd5\u3002<\/p>\n

\u6b32\u901f\u5219\u4e0d\u8fbe\uff0c\u6709\u4e9b\u4e8b\u770b\u8d77\u6765\u6d6a\u8d39\u65f6\u95f4\uff0c\u4f46\u4e0d\u505a\u540e\u60a3\u65e0\u7a77\uff0c\u8ba4\u771f\u505a\u4e86\u53cd\u800c\u80fd\u6709\u6536\u83b7\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u8bdd\u867d\u5982\u6b64\uff0c\u6211\u4eec\u4e5f\u5fc5\u987b\u5bfb\u627e\u673a\u4f1a\uff0c\u6df1\u547c\u5438\uff0c\u653e\u6162\u811a\u6b65\u3002\u5f53\u89c9\u5f97\u65f6\u95f4\u4e0d\u591f\u65f6\uff0c\u8981\u5c0f\u5fc3\u4e0d\u8981\u51fa\u73b0\u4ee5\u4e0b\u8fd9\u4e9b\u91cd\u5927\u9519\u8bef\u3002 \u4f60\u6709\u6ca1\u6709\u5728 […]<\/p>\n","protected":false},"author":1329,"featured_media":202579,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[21],"tags":[],"class_list":["post-202544","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\/202544","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\/1329"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=202544"}],"version-history":[{"count":2,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/202544\/revisions"}],"predecessor-version":[{"id":202580,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/202544\/revisions\/202580"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/202579"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=202544"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=202544"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=202544"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}