{"id":34700,"date":"2023-01-01T14:56:08","date_gmt":"2023-02-16T12:28:03","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e4%bd%bf%e7%94%a8-polymer-dart-start-%e5%88%b6%e4%bd%9c%e4%ba%86%e4%b8%80%e4%b8%aa%e7%bd%91%e9%a1%b5%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f%e3%80%82\/"},"modified":"2024-04-29T07:59:47","modified_gmt":"2024-04-28T23:59:47","slug":"%e6%88%91%e5%b0%9d%e8%af%95%e4%bd%bf%e7%94%a8-polymer-dart-start-%e5%88%b6%e4%bd%9c%e4%ba%86%e4%b8%80%e4%b8%aa%e7%bd%91%e9%a1%b5%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e4%bd%bf%e7%94%a8-polymer-dart-start-%e5%88%b6%e4%bd%9c%e4%ba%86%e4%b8%80%e4%b8%aa%e7%bd%91%e9%a1%b5%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f%e3%80%82\/","title":{"rendered":"\u6211\u5c1d\u8bd5\u4f7f\u7528 Polymer.dart + start \u5236\u4f5c\u4e86\u4e00\u4e2a\u7f51\u9875\u5e94\u7528\u7a0b\u5e8f"},"content":{"rendered":"<p>Dartsummit\u4e2d\u3005\u30a2\u30c4\u30a2\u30c4\u3067\u3057\u305f\u306d\uff08\u3061\u3087\u308d\u3063\u3068\u3057\u304b\u898b\u3066\u306a\u3044\u3051\u3069\uff09\u3002<br \/>\nDartVM\u306e\u5922\u3092\u6368\u3066\u305f\u4ee3\u308f\u308a\u306b\u73fe\u5b9f\u4e16\u754c\u3067\u9811\u5f35\u308b\u611f\u3058\u306b\u671f\u5f85\u304c\u6301\u3066\u307e\u3059\u3002<br \/>\nFletch\u3068\u304b\u3069\u306e\u30ec\u30d9\u30eb\u3067\u4f7f\u3044\u7269\u306b\u306a\u308b\u306e\u304b\u8d85\u697d\u3057\u307f\u3063\u3059\u3002<\/p>\n<p>\u3055\u3066\u3055\u3066\u3001\u305d\u308c\u3068\u306f\u7279\u306b\u95a2\u4fc2\u306a\u304f\u3001<br \/>\n\u305b\u3063\u304b\u304f\u306e\u30b4\u30fc\u30eb\u30c7\u30f3\u30a6\u30a3\u30fc\u30af\u306a\u3093\u3067Dart\u306e\u52c9\u5f37\u306e\u305f\u3081\u306bWeb\u30a2\u30d7\u30ea\u4f5c\u3063\u3066\u307e\u3057\u305f\u3002<\/p>\n<p>Slack\u63d0\u9192<\/p>\n<p>\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9<br \/>\nhttps:\/\/github.com\/takyam-git\/slack_reminder<\/p>\n<p>\u4f55\u304b\u9069\u5f53\u306b\u767b\u9332\u3059\u308b\u3068\u305d\u306e\u65e5\u6642\u306bSlack\u7d4c\u7531\u3067\u901a\u77e5\u3057\u3066\u304f\u308c\u308b\u3060\u3051\u306eWeb\u30a2\u30d7\u30ea\u3002<br \/>\n\u30ed\u30b0\u30a4\u30f3\u5468\u308a\u306fSlack\u306eOAuth\u3092\u305d\u306e\u307e\u307e\u4f7f\u3063\u305f\u3002<br \/>\nOAuth\u3067\u30e6\u30fc\u30b6\u30fc\u8a8d\u8a3c\u3059\u308b\u3093\u3058\u3083\u306d\u30fc\u3088\uff01\u3063\u3066\u6012\u3089\u308c\u305d\u3046\u306a\u6c17\u3082\u3059\u308b\u3051\u3069\u6c17\u306b\u3057\u306a\u3044\u3002<\/p>\n<p>\u3055\u3066\u3001\u30d5\u30ed\u30f3\u30c8\u3082\u30d0\u30c3\u30af\u3082\u5168\u90e8Dart\u3067\u66f8\u3044\u3066\u307f\u305f\u3093\u3067\u3059\u304c\u3001\u7d50\u8ad6\u3068\u3057\u3066\u306f\u8f9b\u3044\u3002<\/p>\n<p>\u4ee5\u4e0b\u5185\u5bb9\u53ea\u662f\u4e00\u4e9b\u611f\u60f3\u6216\u8005\u62b1\u6028\uff0c\u6216\u8005\u8bf4\u662f\u4ec0\u4e48\u4ec0\u4e48\uff0c\u603b\u4e4b\u53ea\u662f\u4e00\u7bc7\u666e\u901a\u7684\u8bd7\u6b4c\u3002<\/p>\n<h2>\u4f7f\u7528\u4e86 Polymer \u7684\u524d\u7aef<\/h2>\n<p>\u9996\u5148\uff0c\u4f7f\u7528Polymer\u975e\u5e38\u56f0\u96be\u3002<br \/>\n\u5236\u4f5c\u65f6\u95f4\u5927\u7ea6\u4e3a4\u5929\u534a\u5de6\u53f3\uff0c\u5176\u4e2d\u8d85\u8fc7\u4e00\u534a\u7684\u65f6\u95f4\u90fd\u5728\u4e3aPolymer\u800c\u594b\u6597\u3002<\/p>\n<p>\u6211\u7b2c\u4e00\u6b21\u63a5\u89e6Polymer\uff0c\u82b1\u4e86\u5c06\u8fd1\u4e24\u5929\u624d\u6478\u7d22\u51fa\u6280\u5de7\uff0c\u6216\u8005\u8bf4\u4e86\u89e3core-elements\/paper-elements\u7684\u4f7f\u7528\u65b9\u6cd5\u548c\u601d\u60f3\u3002\u6211\u8ba4\u4e3aPolymer\u5143\u7d20\u5c31\u50cf\u662f\uff08\u53ef\u80fd\u4f1a\u6210\u4e3a\uff09\u529f\u80fd\u5f3a\u5927\u7684TwitterBootstrap\u3002<\/p>\n<p>\u5728\u786e\u5207\u7684CustomElements\u5c01\u95ed\u4e16\u754c\u4e2d\uff0c\u80fd\u591f\u5728\u5c0f\u8303\u56f4\u5185\u5b9e\u73b0\u975e\u5e38\u5f3a\u5927\u7684\u529f\u80fd\u786e\u5b9e\u4ee4\u4eba\u8d5e\u53f9\uff0c\u800c\u4e14\u901a\u8fc7\u81ea\u5df1\u5236\u4f5cSPA\u4e5f\u5b9e\u9645\u611f\u53d7\u5230\u4e86\u5b83\u7684\u4fbf\u5229\u4e4b\u5904\u3002<\/p>\n<p>\u4e0d\u8fc7\u8bdd\u867d\u5982\u6b64\uff0c\u63d0\u4f9b\u7684\u9ed8\u8ba4\u5143\u7d20\u7ec4\u7684\u4f7f\u7528\u65b9\u6cd5\u5f88\u96be\u3002<\/p>\n<p>\u7b54\u3048\u304c\u5206\u304b\u308c\u3070\u5225\u306b\u300c\u3042\u30fc\u306d\u3001\u306a\u308b\u307b\u3069\u306d\u300d\u304f\u3089\u3044\u306a\u611f\u3058\u306a\u3093\u3060\u3051\u3069\u3001\u4f55\u6545\u304b\u753b\u9762\u304c\u771f\u3063\u767d\u306b\uff01\u3068\u304b\u3001\u4f55\u3067\u304b\u601d\u3063\u305f\u901a\u308a\u306b\u8868\u793a\u3055\u308c\u306d\u3047\u30fb\u30fb\u30fb\u3068\u304b\u3068\u304b\u3044\u308d\u3044\u308d\u30cf\u30de\u308a\u307e\u304f\u3063\u305f\u3002<\/p>\n<h3>\u6c89\u8ff7\u5176\u4e2d\u7684\u5730\u65b9<\/h3>\n<p>\u5927\u4f53\u95ee\u9898\u53ef\u5206\u4e3a\u4ee5\u4e0b\u4e09\u79cd\u7c7b\u578b\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">import\u5fd8\u308c<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u8aad\u3093\u3067\u306a\u304b\u3063\u305f<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u305d\u3082\u305d\u3082\u305d\u3093\u306a\u4e8b\u306f\u3067\u304d\u306a\u3044\u4e8b\u3092\u3057\u3088\u3046\u3068\u3057\u3066\u305f<\/ul>\n<p>\u4e00\u5f00\u59cb\u5fd8\u4e86\u5bfc\u5165(import)\u7684\u65f6\u5019\uff0c\u611f\u89c9\u5f88\u70e6\u607c\uff0c\u4e0d\u505c\u5730\u95ee\u81ea\u5df1\u4e3a\u4ec0\u4e48\u6ca1\u51fa\u6765\u3002\u4f46\u662f\u8fc7\u4e86\u5927\u7ea610\u6b21\u91cd\u590d\u4e4b\u540e\uff0c\u6211\u7684\u8eab\u4f53\u7ec8\u4e8e\u8bb0\u4f4f\u4e86\u8981\u5148\u68c0\u67e5\u4e00\u4e0b\u662f\u5426\u5df2\u7ecf\u5bfc\u5165(import)\u4e86\u3002\u6211\u76f8\u5f53\u5bb9\u6613\u5fd8\u8bb0\u8fd9\u4e2a\u3002<\/p>\n<p>\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306f\u8d85\u4e0d\u89aa\u5207\u3067\u3001\u57fa\u672c\u7684\u306b\u306f\u300cdemo\u306e\u30bd\u30fc\u30b9\u8aad\u3081\u300d\u72b6\u614b\u3002<br \/>\n\u4f55\u3068\u306a\u304f\u300cPolymer\u306e\u96f0\u56f2\u6c17\u300d\u3064\u304b\u3081\u3066\u304f\u308b\u3068\u300c\u3042\u3041\u3001\u5fc5\u8981\u6700\u4f4e\u9650\u306e\u3053\u3068\u66f8\u3044\u3066\u3042\u308b\u306a\u3041\u300d\u3068\u306f\u601d\u3048\u308b\u3093\u3060\u3051\u3069\u3001\u3044\u304d\u306a\u308a\u3042\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3060\u3051\u3060\u3068\u8f9b\u3044\u3002<\/p>\n<p>\u3042\u3068\u306f\u4f55\u304b\u671f\u5f85\u5024\u304c\u3042\u304c\u3063\u3061\u3083\u3063\u3066\u300c\u3053\u308c\u3067\u304d\u305d\u3046\uff01\u3084\u3063\u3066\u307f\u3088\u3046\uff01\u300d-&gt;\u300c\u3093\u306a\u3053\u3068\u3067\u304d\u306d\u30fc\u3088\u300d\u306f\u5272\u3068\u3042\u3063\u305f\u3002<br \/>\n\u305f\u3076\u3093\u3084\u308a\u305f\u3044\u4e8b\u3084\u308b\u306b\u306f core-elements\/paper-elements \u3092\u7d99\u627f\u3057\u305f\u30aa\u30ec\u304c\u8003\u3048\u305f\u6700\u5f37\u306e core-elements\/paper-elements \u3092\u4f5c\u308c\u3070\u3044\u3044\u3060\u3051\u306a\u3093\u3060\u3051\u3069\u3001\u305d\u3053\u307e\u3067\u3059\u308b\u306e\u306f\u3061\u3087\u3063\u3068\u30fb\u30fb\u30fb\u3063\u3066\u611f\u3058\u3002\u7d99\u627f\u5143\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u8aad\u307f\u89e3\u304f\u306e\u3068\u304b\u8f9b\u3044\u3002<\/p>\n<h3>\u805a\u5408\u7269\u7684\u611f\u53d7<\/h3>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30c7\u30fc\u30bf\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0\u4fbf\u5229\u3060\u3051\u3069\u3061\u3083\u3093\u3068\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u8aad\u3093\u3067\u304b\u3089\u4f7f\u3048<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">CSS\u30bb\u30ec\u30af\u30bf\u30de\u30b8\u7cde<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u304b\u3086\u3044\u3068\u3053\u308d\u306b\u624b\u304c\u3068\u3069\u304b\u306a\u3044<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u610f\u5916\u3068\u30af\u30ed\u30b9\u30d6\u30e9\u30a6\u30b6\u3067\u52d5\u3044\u3066\u308b\uff08\u305f\u3076\u3093\uff09<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">isomorphic\u7684\u306a\u3084\u3064<\/ul>\n<h4>\u6570\u636e\u7ed1\u5b9a\u7684\u8ba8\u8bba<\/h4>\n<p>\u6570\u636e\u7ed1\u5b9a\u975e\u5e38\u65b9\u4fbf\uff0c\u53ea\u9700\u9002\u5f53\u7ba1\u7406\u6a21\u578b\uff0c\u663e\u793a\u90e8\u5206\u4f1a\u81ea\u52a8\u76f8\u5e94\u5730\u53d8\u5316\uff0c\u771f\u7684\u5f88\u65b9\u4fbf\u3002\u800c\u4e14\u7ed1\u5b9a\u7684\u6307\u5b9a\u4e5f\u53ef\u4ee5\u4e0d\u7528\u6307\u5b9a\u5177\u4f53\u7ec6\u8282\uff0c\u53ea\u9700\u50cf\u8fd9\u6837<\/p>\n<p>{{model.hoge}}<\/p>\n<p>\uff0c\u5f53\u6a21\u578b\u7684hoge\u503c\u53d1\u751f\u53d8\u5316\u65f6\uff0c\u76f8\u5e94\u7684<\/p>\n<p>\u6807\u7b7e\u90e8\u5206\u4e5f\u4f1a\u81ea\u52a8\u53d8\u5316\u3002<\/p>\n<p>\u305d\u308c\u306f\u3082\u3046\u305d\u308c\u306f\u3082\u3046\u4fbf\u5229\u306a\u3093\u3060\u3051\u3069\u3001\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0\u6307\u5b9a\u3057\u3066\u308b\u3068<input type=\"text\" \/> \u307f\u305f\u3044\u306b\u3057\u3066\u308bINPUT\u3067\u3001\u30ab\u30c1\u30e3\u30ab\u30c1\u30e3\u5165\u529b\u3059\u308b\u3068\u5165\u529b\u3057\u305f\u5185\u5bb9\u306bmodel.hoge\u306e\u5024\u3082\u5909\u308f\u3063\u305f\u308a\u3057\u3066\u3001\u305d\u308c\u306f\u3082\u3046\u4f55\u3066\u3044\u3046\u304b\u8d85\u53cc\u65b9\u5411\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0\u306a\u308f\u3051\u306a\u3093\u3067\u3059\u304c\u3001\u305d\u306e\u8fba\u306e\u6a5f\u80fd\u3092\u5168\u304f\u7406\u89e3\u305b\u305a\u306b\u4f5c\u308a\u59cb\u3081\u305f\u306e\u3067\u3001\u7de8\u96c6\u30d5\u30a9\u30fc\u30e0\u3068\u304b\u4f5c\u3063\u305f\u3089\u4fdd\u5b58\u3059\u308b\u307e\u3048\u306b\u30e2\u30c7\u30eb\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u66f8\u304d\u63db\u308f\u3063\u3066\u3046\u308f\u3041\u3041\u3042\u307f\u305f\u3044\u306a\u3002<\/p>\n<h4>\u6709\u5173CSS\u9009\u62e9\u5668\u7684\u8ba8\u8bba<\/h4>\n<p>CSS\u9009\u62e9\u5668\u592a\u96be\u4e86\uff0c\u6211\u4ecd\u7136\u6709\u5f88\u591a\u5730\u65b9\u4e0d\u592a\u7406\u89e3\u3002<br \/>\n\uff08\u5bf9\u4e8e\u666e\u901a\u7684DOM\u9009\u62e9\u5668\uff0c\u6211\u662f\u4e00\u4e2a\u80fd\u591f\u666e\u901a\u5199\u7684\u4eba\uff09<\/p>\n<p>:host(#hoge) \u3068\u304b ::shadow \u3068\u304b\u3000hoge-elements \/deep\/ .fuga\u3068\u304b\u3001shadow-dom\u7528\u306eCSS\u30bb\u30ec\u30af\u30bf\u304c\u3044\u304f\u3064\u304b\u3042\u308b\u3093\u3067\u3059\u304c\u3001\u30b3\u30ec\u304c\u4f55\u304b\u671f\u5f85\u3069\u304a\u308a\u306b\u52d5\u304b\u306a\u3044\u3002\u30de\u30b8\u3067\u7406\u7531\u5206\u304b\u3089\u3093\u3051\u3069\u30b9\u30bf\u30a4\u30eb\u304c\u5f53\u305f\u3089\u306a\u304b\u3063\u305f\u308a\u3059\u308b\u3002\u300c\u3068\u308a\u307e \/deep\/ \u3064\u3051\u3068\u304d\u3083\u697d\u52dd\u3063\u3057\u3087\uff57\uff57\uff57\u300d\u3068\u304b\u601d\u3063\u3066\u305f\u6642\u4ee3\u304c\u4ffa\u306b\u3082\u3042\u308a\u307e\u3057\u305f\u3002\/deep\/\u3068\u304b:host\u3068\u304b\u305d\u3093\u306a\u30c1\u30e3\u30c1\u306a\u3082\u3093\u3058\u3083\u30b9\u30bf\u30a4\u30eb\u304c\u53cd\u6620\u3055\u308c\u306a\u3044\u4e8b\u304c\u30b6\u30e9\u306b\u3042\u308b\u3002<\/p>\n<p>\u6700\u7d42\u7684\u306b\u306f style=&#8221;background-color: white;&#8221; \u307f\u305f\u3044\u306bstyle\u5c5e\u6027\u3064\u3051\u308b\u306e\u304c\u6700\u9ad8\u306b\u9593\u9055\u3044\u306a\u3044\u4e8b\u304c\u5206\u304b\u3063\u305f\u306e\u3067\u3001\u3082\u3046\u306a\u3093\u304b\u30b3\u30ec\u3067\u3044\u3044\u304b\u306a\u3068\u601d\u3063\u3066\u308b\u3002<\/p>\n<h4>\u75d2\u5904\u65e0\u6cd5\u53ca\u65f6\u6293\u5230<\/h4>\n<p>Google\u3063\u307d\u3044UI\u304c\u304a\u624b\u8efd\u306b\u4f5c\u308c\u305d\u3046\u306a\u96f0\u56f2\u6c17\u306e core-elements \u3068 paper-elements \u3067\u3059\u304c\u3001\u8272\u6307\u5b9a\u3068\u304b\u30b5\u30a4\u30ba\u6307\u5b9a\u3068\u304b\u305d\u306e\u8fba\u306fCSS\u3067\u5404\u81ea\u6307\u5b9a\u3057\u3066\u306d\u3063\u3063\u3066\u611f\u3058\u306e\u304c\u307b\u3068\u3093\u3069\u306a\u306e\u3067\u3001Bootstrap\u6c17\u5206\u3067\u30c7\u30b6\u30a4\u30f3\u306e\u90e8\u5206\u3092\u5168\u304f\u6c17\u306b\u305b\u305a\u306b\u3059\u3080\u304b\u3068\u3044\u3046\u3068\u305d\u3046\u3067\u306f\u7121\u3044\u306e\u3067\u6ce8\u610f\u3002<\/p>\n<p>\u53ea\u5269\u4e0b\u6211\u4e4b\u524d\u63d0\u5230\u7684\u90a3\u6837\u4e86\uff0c\u5373\u4f7f\u6709\u65f6\u5019\u6211\u4ee5\u70ba&#8221;\u90a3\u4e2a\u4e1c\u897f\u53ef\u4ee5\u505a\u5230!&#8221;\uff0c\u4f46\u5b9e\u9645\u4e0a\u5374\u65e0\u6cd5\u5b9e\u73b0\u7684\u60c5\u51b5\u592a\u591a\u4e86\uff0c\u6240\u4ee5\u6211\u8ba4\u4e3a\u5728\u4ece\u68a6\u4e2d\u9192\u6765\u7684\u72b6\u6001\u4e0b\u5f00\u59cb\u7f16\u7801\u4f1a\u66f4\u52a0\u8f9b\u82e6\u3002<br \/>\n\u57fa\u672c\u4e0a\uff0c\u5728DEMO\u9875\u9762\u4e0a\u5df2\u7ecf\u5b9e\u73b0\u7684\u529f\u80fd\u4e4b\u5916\u7684\u4e8b\u60c5\uff0c\u6700\u597d\u8fd8\u662f\u4e0d\u8981\u53bb\u8003\u8651\uff0c\u8fd9\u5bf9\u7cbe\u795e\u5065\u5eb7\u66f4\u597d\u3002<\/p>\n<h4>\u8de8\u6d4f\u89c8\u5668<\/h4>\n<p>\u4f55\u3082\u610f\u8b58\u305b\u305a\u306b\u958b\u767a\u4e2d\u306fChrome\u3057\u304b\u898b\u3066\u306a\u304b\u3063\u305f\u3051\u3069\u3001<input type=\"datetime-local\" \/>\u307f\u305f\u3044\u306aPolymer\u3068\u95a2\u4fc2\u306a\u3044\u3068\u3053\u308d\u4ee5\u5916\u306f\u3069\u306e\u30d6\u30e9\u30a6\u30b6\u3067\u3082\u666e\u901a\u306b\u52d5\u3044\u3066\u308b\uff08\u3088\u3046\u306b\u898b\u3048\u308b\uff09\u3002<br \/>\n\u7d30\u304b\u3044\u3068\u3053\u308d\u3067\u3082\u3057\u304b\u3057\u305f\u3089\u6319\u52d5\u306b\u9055\u3044\u3068\u304b\u51fa\u3066\u304f\u308b\u306e\u304b\u3082\u3057\u308c\u3093\u3051\u3069\u3001\u958b\u767a\u4e2d\u306b\u7d30\u304b\u304f\u5168\u90e8\u306e\u30d6\u30e9\u30a6\u30b6\u6c17\u306b\u3057\u306a\u304c\u3089\u301c\u307f\u305f\u3044\u306a\u4e8b\u306f\u3057\u306a\u304f\u3066\u3088\u3055\u305d\u3046\u3002Good\u3002<br \/>\n\u306a\u304a\u3001IE\u3067\u306f\u898b\u3066\u306a\u3044\u306e\u3067\u5206\u304b\u3089\u3093\u3002<\/p>\n<h4>\u540c\u6784\u7684\u4e1c\u897f<\/h4>\n<p>\u5982\u679c\u4f7f\u7528Polymer\u8fdb\u884c\u5f00\u53d1\uff0c\u5f88\u53ef\u80fd\u5728\u9875\u9762\u52a0\u8f7d\u540e\u4f1a\u51fa\u73b0\u539f\u5219\u4e0a\u7684\u201c\u6e32\u67d3\u7b49\u5f85\u65f6\u95f4\u201d\u3002\u53ef\u80fd\u7684\u8bdd\uff0c\u80fd\u5426\u5728\u670d\u52a1\u5668\u7aef\u5c55\u5f00\u53ea\u9700\u8981\u7684Polymer\u90e8\u5206\u5462&#8230;<br \/>\n\u4e0d\u8fc7\u521d\u59cb\u5316\u7684\u6210\u672c\u53ef\u80fd\u5f88\u9ad8\u3002<\/p>\n<p>\u89e3\u6c7a\u65b9\u6cd5\u3042\u308b\u306e\u304b\u306a\u3041\u30fb\u30fb\u30fb<\/p>\n<h3>\u5173\u4e8e\u805a\u5408\u7269\u7684\u672a\u6765<\/h3>\n<p>\u3088\u3046\u77e5\u3089\u3093\u3057\u3001React\u306b\u3088\u3063\u3066\u99c6\u9010\u3055\u308c\u308b\u306e\u304b\u3082\u3057\u3089\u3093\u3051\u3069\u3001\u5272\u3068\u4f7f\u3048\u308b\u3084\u3064\u3060\u3068\u306f\u601d\u3044\u307e\u3057\u305f\u3002<br \/>\n\u305d\u3082\u305d\u3082\u30d0\u30fc\u30b8\u30e7\u30f30.5\u3060\u3057Chrome\u4ee5\u5916\u3060\u3068shadow-dom\u306e\u5b9f\u88c5\u304c\u30a4\u30de\u30a4\u30c1\u306a\u3093\u3067\u3001\u4eca\u5f8c\u306f\u3069\u3046\u306a\u3063\u3066\u3044\u304f\u3093\u3060\u308d\u3046\u306a\u30fc\u308f\u304f\u308f\u304f\u3002\u3067\u3044\u3044\u304b\u3068\u3002<\/p>\n<h2>\u5728\u670d\u52a1\u5668\u7aef\u4f7f\u7528\u7684start\u3002<\/h2>\n<p>\u4e0a\u6b21\u6211\u4f7f\u7528 http_server \u6765\u7f16\u5199\u670d\u52a1\u5668\u7aef\uff0c\u4f46\u8fd9\u6b21\u6211\u5c1d\u8bd5\u4f7f\u7528 start\u3002<\/p>\n<p>\u7531\u4e8eDart\u7684\u670d\u52a1\u5668\u7aef\u6846\u67b6\u6ca1\u6709\u50cfExpress\u6216Rails\u4e00\u6837\u7684\u7ec8\u6781\u9009\u62e9\uff0c\u6240\u4ee5\u6682\u65f6\u6211\u4eec\u53ea\u63d0\u4f9bREST\u683c\u5f0f\u7684API\u5c31\u8db3\u591f\u4e86\uff0c\u6240\u4ee5\u6211\u4eec\u9009\u62e9\u4e86\u542f\u53d1\u81eaSinatra\u7684start\u6846\u67b6\u3002<\/p>\n<p>\u8fd9\u662f\u4e00\u4e2a\u5de8\u5927\u7684\u9519\u8bef\u3002<\/p>\n<p>\u8f7b\u4e00\u4e9b\u662f\u597d\u4e8b\uff0c\u4f46\u662f\u6211\u53d1\u73b0\u5728\u8d85\u8f7b\u91cf\u7ea7\u7684\u6bd4\u8d5b\u4e2d\u53d8\u5f97\u56f0\u96be\u4e86\u3002<\/p>\n<h3>\u56f0\u5883<\/h3>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30bb\u30c3\u30b7\u30e7\u30f3\u304c\u30aa\u30f3\u30e1\u30e2\u30ea\u4e00\u629e<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3068\u304b\u7121\u3044\u3067\u3059<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u5171\u901a\u51e6\u7406\u3068\u304b\u51fa\u6765\u308b\u3068\u601d\u3063\u305f\u3089\u5927\u9593\u9055\u3044\u3067\u3059<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">CSRF\u306a\u306b\u305d\u308c\u7f8e\u5473\u3057\u3044\u306e<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">JSON\u3067\u30ec\u30b9\u30dd\u30f3\u30b9\u3059\u308b\u3068\u3044\u3063\u305f\u304c\u305d\u308c\u306f\u5618\u3060<\/ul>\n<h4>\u4f1a\u8c08<\/h4>\n<p>\u5728Dart\u7684\u6807\u51c6\u5e93dart:io\u4e2d\u6709\u4e00\u4e2a\u540d\u4e3aHttpServer\u7684\u7c7b\uff0c\u5b83\u5185\u90e8\u6709\u4e00\u4e2aSessionManager\uff0c\u7528\u4e8e\u7ba1\u7406\u4f1a\u8bdd\u3002\u8fd9\u4e2aSessionManager\u975e\u5e38\u65b9\u4fbf\u5730\u7ba1\u7406\u4f1a\u8bdd\uff0c\u4f46\u5b83\u53ea\u80fd\u5728\u5185\u5b58\u4e2d\u5b58\u50a8\u4f1a\u8bdd\u6570\u636e\u3002<br \/>\n\u4eceDart\u7684\u89d2\u5ea6\u6765\u770b\uff0c\u201c\u8fd9\u662f\u4e2a\u62bd\u8c61\u7684\u4e1c\u897f\uff0c\u968f\u4fbf\u4f60\u600e\u4e48\u5b9e\u73b0\u5b83\u201d\u8fd9\u79cd\u611f\u89c9\uff0c\u4f46\u5b9e\u9645\u4e0a\u6211\u4eec\u5728\u542f\u52a8\u65f6\u5c31\u76f4\u63a5\u4f7f\u7528\u4e86\u5b83\u3002<\/p>\n<p>\u5982\u679c\u4e0d\u9700\u8981\u51c6\u5907memcache\u6216Redis\u4e4b\u7c7b\u7684\u4e1c\u897f\u4f1a\u5f88\u4e0d\u9519\u5427\uff1f\u4f46\u5982\u679c\u4ee5\u4e3a\u53ea\u80fd\u9009\u62e9\u57fa\u4e8e\u5185\u5b58\u7684\u4f1a\u8bdd\uff0c\u90a3\u5c31\u5927\u9519\u7279\u9519\u4e86\u3002\u6bcf\u6b21\u670d\u52a1\u5668\u91cd\u65b0\u542f\u52a8\uff08\u4ee3\u7801\u6539\u53d8\u540e\u91cd\u65b0\u542f\u52a8\u5bf9\u5427\uff09\uff0c\u90fd\u9700\u8981\u91cd\u65b0\u767b\u5f55\uff0c\u8fd9\u662f\u4e00\u79cd\u975e\u5e38\u75db\u82e6\u7684\u73b0\u5b9e\u3002<\/p>\n<p>\u30bb\u30c3\u30b7\u30e7\u30f3\u306e\u5b9f\u4f53\u306fabstract\u306aHttpSession\u30af\u30e9\u30b9\u3060\u304b\u3089\u30b3\u30b3\u5dee\u3057\u63db\u3048\u305f\u308a\u81ea\u524d\u5b9f\u88c5\u306b\u51fa\u6765\u305f\u308a\u3059\u308b\u306a\u3089\u307e\u3060\u3088\u304b\u3063\u305f\u3093\u3060\u3051\u3069\u3001\u305d\u3046\u3044\u3063\u305f\u30bb\u30c3\u30b7\u30e7\u30f3\u30cf\u30f3\u30c9\u30e9\u7684\u306a\u90e8\u5206\u306e\u51e6\u7406\u306e\u5dee\u3057\u63db\u3048\u3068\u304bstart\u306f\u305f\u3076\u3093\u5168\u304f\u8003\u3048\u3066\u306a\u304f\u3066\u3001\u300c\u3044\u3044\u3088\u306d\uff01\u30aa\u30f3\u30e1\u30e2\u30ea\u3067\u3044\u3044\u3088\u306d\uff01\u300d\u304f\u3089\u3044\u306e\u30ce\u30ea\u3002<\/p>\n<p>\u3068\u3044\u3046\u304b\u305f\u3076\u3093\u300c\u4f55\u3067start\u306b\u30bb\u30c3\u30b7\u30e7\u30f3\u304c\u5fc5\u8981\u306a\u306e\uff1f\u99ac\u9e7f\u306a\u306e\u6b7b\u306c\u306e\uff1f\u300d\u304f\u3089\u3044\u306e\u30c6\u30f3\u30b7\u30e7\u30f3\u3002<\/p>\n<p>\u5236\u4f5c\u4e00\u4e2a\u53ea\u6709\u8d85\u8f7b\u91cf\u7ea7\u516c\u5f00API\u7684\u5e94\u7528\u7a0b\u5e8f\uff01\u4f60\u53ef\u4ee5\u4ece\u5b9e\u73b0\u4e2d\u5f3a\u70c8\u5730\u611f\u53d7\u5230\u8fd9\u79cd\u611f\u89c9\u3002<\/p>\n<p>\u5982\u679c\u6709\u4eba\u8bf4\u201c\u54ce\u5440\uff0c\u8fd8\u6ca1\u52301.0\u7248\u672c\u5462\u201d\uff0c\u6211\u53ea\u80fd\u56de\u7b54\u201c\u662f\u5462\u201d\u3002<\/p>\n<p>\u53ea\u6709\u8fd9\u4e00\u70b9\uff0c\u6211\u516c\u5f00\u9009\u62e9\u4e86\u5f00\u59cb\u3002<\/p>\n<h4>\u7bc4\u672c<\/h4>\n<p>Github\u7684README\u4e2d\u5199\u7740\u6709\u4e00\u4e2a\u540d\u4e3arender(viewName, [Map params])\u7684\u65b9\u6cd5\u3002<\/p>\n<p>\u771f\u9057\u61be\u554a\uff01\u90a3\u662f\u8c0e\u8a00\uff01<\/p>\n<p>\u5728\u4efb\u4f55\u5730\u65b9\u90fd\u6ca1\u6709\u8fd9\u6837\u7684\u5b9e\u73b0\u3002\u597d\u8f9b\u82e6\u3002<\/p>\n<p>\u9700\u8981\u5199\u51fa\u7c7b\u4f3c\u8fd9\u6837\u4ee4\u4eba\u6cae\u4e27\u7684\u4ee3\u7801\uff1arequest.response.send(await templateFile.readAsString())\u3002<\/p>\n<p>\u55ef\uff0c\u5927\u6982\u662f\u8bf4\u4f60\u53ef\u4ee5\u4f7f\u7528\u5176\u4ed6\u6a21\u677f\u5f15\u64ce\u7684\u610f\u601d\u5427\uff01<\/p>\n<p>\u4f7f\u7528 Polymer\uff0c\u6700\u7ec8\u751f\u6210\u7684 index.html \u53d8\u6210\u4e86\u7ecf\u8fc7\u5904\u7406\u7684\u3001\u6784\u5efa\u7684HTML\uff0c\u5904\u7406\u4e86\u5f88\u591a\u4e0d\u540c\u7684\u64cd\u4f5c\uff0c\u6240\u4ee5\u6ca1\u6709\u7a7a\u95f4\u63d2\u5165\u6a21\u677f\uff01<\/p>\n<h4>\u901a\u7528\u5904\u7406<\/h4>\n<p>\u6211\u60f3\u8981\u7c7b\u4f3c\u4e8eExpress\u4e2d\u95f4\u4ef6\u7684\u529f\u80fd\uff0c\u5c31\u50cf\u5728server.addMiddleware(new AuthorizationMiddleware())\u8fd9\u6837\u505a\u4e00\u6837\uff01<\/p>\n<p>\u663e\u7136\u6ca1\u6709\u8fd9\u6837\u7684\u4e8b\u60c5<\/p>\n<pre class=\"post-pre\"><code>server.get('\/hoge').listen((req){\r\n    if(await this._isLoggedin(req)){\r\n        req.response.redirect('\/login');\r\n        return;\r\n    }\r\n    \/\/....\r\n});\r\nserver.get('\/fuga').listen((req){\r\n    if(await this._isLoggedin(req)){\r\n        req.response.redirect('\/login');\r\n        return;\r\n    }\r\n    \/\/....\r\n});\r\n<\/code><\/pre>\n<p>\u4eff\u4f5b\u662f\u8fd9\u6837\u561b\uff01\u4e0d\u5199\u8fd9\u6837\u7684\u4e1c\u897f\u7684\u8bdd\u5c31\u4e0d\u884c\u554a\uff01\u867d\u7136\u8fd9\u6837\u60f3\uff0c\u4f46\u662f\u7528where\u6216\u8005pipe\u4e4b\u7c7b\u7684\u65b9\u5f0f\u52aa\u529b\u7684\u8bdd\uff0c\u80fd\u505a\u51fa\u7c7b\u4f3c\u7684\u4e8b\u60c5\u5417\uff1f\u4f46\u662f\u6211\u4e0d\u60f3\u7528\u90a3\u6837\u7684\u52aa\u529b\u65b9\u5f0f\u554a\u3002<\/p>\n<h4>\u8de8\u7ad9\u8bf7\u6c42\u4f2a\u9020 (CSRF)<\/h4>\n<p>\u81ea\u7136\u800c\u7136\u5730\uff0c\u958b\u59cb\u529f\u80fd\u6c92\u6709\u90a3\u6a23\u7684\u529f\u80fd\u3002<br \/>\n\u800c\u4e14\u767c\u5e03\u7684\u5eab\u4e5f\u6c92\u6709\u90a3\u6a23\u7684\u51fd\u5f0f\u5eab\u3002<br \/>\n\u7d50\u679c\u6211\u5011\u4e0d\u5f97\u4e0d\u81ea\u5df1\u5be6\u73fe\u5b83\u3002<br \/>\n\u975e\u5e38\u8f9b\u82e6&#8230;\u3002<\/p>\n<p>\u4eca\u56de\u306f\u9069\u5f53\u306bCookie\u30d9\u30fc\u30b9\u306e\u30ef\u30f3\u30bf\u30a4\u30e0\u30c8\u30fc\u30af\u30f3\u3092\u5b9f\u88c5\u3057\u305f\u3051\u3069\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u7684\u306b\u554f\u984c\u304c\u6709\u308b\u306e\u304b\u7121\u3044\u306e\u304b\u826f\u3046\u5206\u304b\u3089\u3093\u3002\u305f\u3076\u3093\u5927\u4e08\u592b\u3060\u3068\u4fe1\u3058\u3066\u3084\u307e\u306a\u3044\u3002\u3061\u3083\u3093\u3068\u3059\u308b\u306a\u3089\u4f55\u304b\u4ed6\u306e\u5b9f\u88c5\u3092\u53c2\u8003\u306b\u3057\u305f\u3044\u3068\u3053\u308d\u3002<\/p>\n<h4>Content-Type\u7684\u9677\u9631<\/h4>\n<p>request.response.json({&#8220;hoge&#8221;: something}) \u307f\u305f\u3044\u306b\u3059\u308b\u3068\u3044\u3061\u3044\u3061JSON.encode()\u304b\u3051\u306a\u304f\u3066\u3082\u52dd\u624b\u306bJSON\u3067\u30ec\u30b9\u30dd\u30f3\u30b9\u3057\u3066\u304f\u308c\u308b\u30e1\u30bd\u30c3\u30c9\u304c\u3042\u308b\u3002<\/p>\n<p>\u7136\u800c\uff0cContent-Type\u4fdd\u6301\u4e0d\u53d8\u3002\u786e\u5207\u5730\u8bf4\u5e94\u4e3atext\/plain\u3002<\/p>\n<p>\u4e3a\u4ec0\u4e48\u554a\u554a\u554a\uff01\u6700\u7ec8\uff0c\u4e3a\u4ec0\u4e48\u554a\uff01<\/p>\n<pre class=\"post-pre\"><code>request.response\r\n  ..send(200)\r\n  ..header('Content-Type', 'application\/json; charset=utf-8')\r\n  ..json(responseData);\r\n<\/code><\/pre>\n<p>\u307f\u305f\u3044\u306a\u4e8b\u3057\u306a\u304d\u3083\u3044\u3051\u306a\u3044\u3002\u3042\u3093\u3060\u304b\u306a\u3041\u30fb\u30fb\u30fb<\/p>\n<h3>start\u306e\u611f\u60f3<\/h3>\n<p>\u4e5f\u8bb8\u518d\u4e5f\u4e0d\u4f1a\u7528\u4e86\u3002<br \/>\n\u4e5f\u8bb8\u4f1a\u88ab\u8bf4&#8221;\u53d1\u4e2a\u516c\u5173\uff0c\u6539\u5584\u4e00\u4e0b\u5427\uff01&#8221;\uff0c\u4f46\u8fd9\u4e2a\u7a0b\u5ea6\u8fd8\u8fdc\u8fdc\u4e0d\u591f\u3002<\/p>\n<p>start\u306f\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u306f\u306a\u304f\u3001http_server\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30e9\u30c3\u30d1\u30fc\u3001\u304f\u3089\u3044\u306e\u30c6\u30f3\u30b7\u30e7\u30f3\u3067\u4f7f\u3046\u3068\u826f\u3044\u3068\u601d\u3046\u3002<br \/>\nhttp_server\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u751f\u3067\u4f7f\u3046\u3088\u308a\u306f\u3060\u3044\u3076\u3089\u304f\u306a\u306e\u306f\u78ba\u304b\u3002<\/p>\n<h2>\u603b\u7ed3<\/h2>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Polymer\u306f\u60aa\u304f\u306a\u3044<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">start\u306f\u826f\u304f\u306a\u3044<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30a8\u30b3\u30b7\u30b9\u30c6\u30e0\u304c\u80b2\u3063\u3066\u306a\u3044\u4e16\u754c\u306e\u30de\u30a4\u30af\u30ed\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306f\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u8db3\u308a\u5f97\u306a\u3044<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u3053\u3093\u306a\u306e\u4f5c\u3063\u3066\u308b\u305b\u3044\u3067\u663c\u591c\u9006\u8ee2\u3057\u305f\u3057\u3001\u9023\u4f11\u306e\u534a\u5206\u304c\u6d88\u3048\u305f\u3002<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u4f5c\u308a\u306a\u304a\u3057\u305f\u3044\u3002\u3067\u3082\u3082\u3046\u75b2\u308c\u305f\u3002<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Dartsummit\u4e2d\u3005\u30a2\u30c4\u30a2\u30c4\u3067\u3057\u305f\u306d\uff08\u3061\u3087\u308d\u3063\u3068\u3057\u304b\u898b\u3066\u306a\u3044\u3051\u3069\uff09\u3002 DartVM\u306e\u5922\u3092\u6368\u3066\u305f\u4ee3\u308f\u308a\u306b\u73fe\u5b9f [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-34700","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u6211\u5c1d\u8bd5\u4f7f\u7528 Polymer.dart + start \u5236\u4f5c\u4e86\u4e00\u4e2a\u7f51\u9875\u5e94\u7528\u7a0b\u5e8f - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/\u6211\u5c1d\u8bd5\u4f7f\u7528-polymer-dart-start-\u5236\u4f5c\u4e86\u4e00\u4e2a\u7f51\u9875\u5e94\u7528\u7a0b\u5e8f\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u6211\u5c1d\u8bd5\u4f7f\u7528 Polymer.dart + start \u5236\u4f5c\u4e86\u4e00\u4e2a\u7f51\u9875\u5e94\u7528\u7a0b\u5e8f\" \/>\n<meta property=\"og:description\" content=\"Dartsummit\u4e2d\u3005\u30a2\u30c4\u30a2\u30c4\u3067\u3057\u305f\u306d\uff08\u3061\u3087\u308d\u3063\u3068\u3057\u304b\u898b\u3066\u306a\u3044\u3051\u3069\uff09\u3002 DartVM\u306e\u5922\u3092\u6368\u3066\u305f\u4ee3\u308f\u308a\u306b\u73fe\u5b9f [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u6211\u5c1d\u8bd5\u4f7f\u7528-polymer-dart-start-\u5236\u4f5c\u4e86\u4e00\u4e2a\u7f51\u9875\u5e94\u7528\u7a0b\u5e8f\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-02-16T12:28:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-28T23:59:47+00:00\" \/>\n<meta name=\"author\" content=\"\u6e05, \u626c\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u6e05, \u626c\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e4%bd%bf%e7%94%a8-polymer-dart-start-%e5%88%b6%e4%bd%9c%e4%ba%86%e4%b8%80%e4%b8%aa%e7%bd%91%e9%a1%b5%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e4%bd%bf%e7%94%a8-polymer-dart-start-%e5%88%b6%e4%bd%9c%e4%ba%86%e4%b8%80%e4%b8%aa%e7%bd%91%e9%a1%b5%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f%e3%80%82\/\",\"name\":\"\u6211\u5c1d\u8bd5\u4f7f\u7528 Polymer.dart + start \u5236\u4f5c\u4e86\u4e00\u4e2a\u7f51\u9875\u5e94\u7528\u7a0b\u5e8f - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-02-16T12:28:03+00:00\",\"dateModified\":\"2024-04-28T23:59:47+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/cb5556d2501da73d864cac945e8d9461\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e4%bd%bf%e7%94%a8-polymer-dart-start-%e5%88%b6%e4%bd%9c%e4%ba%86%e4%b8%80%e4%b8%aa%e7%bd%91%e9%a1%b5%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e4%bd%bf%e7%94%a8-polymer-dart-start-%e5%88%b6%e4%bd%9c%e4%ba%86%e4%b8%80%e4%b8%aa%e7%bd%91%e9%a1%b5%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e4%bd%bf%e7%94%a8-polymer-dart-start-%e5%88%b6%e4%bd%9c%e4%ba%86%e4%b8%80%e4%b8%aa%e7%bd%91%e9%a1%b5%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u6211\u5c1d\u8bd5\u4f7f\u7528 Polymer.dart + start \u5236\u4f5c\u4e86\u4e00\u4e2a\u7f51\u9875\u5e94\u7528\u7a0b\u5e8f\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/cb5556d2501da73d864cac945e8d9461\",\"name\":\"\u6e05, \u626c\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g\",\"caption\":\"\u6e05, \u626c\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/qingyang\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e4%bd%bf%e7%94%a8-polymer-dart-start-%e5%88%b6%e4%bd%9c%e4%ba%86%e4%b8%80%e4%b8%aa%e7%bd%91%e9%a1%b5%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u6211\u5c1d\u8bd5\u4f7f\u7528 Polymer.dart + start \u5236\u4f5c\u4e86\u4e00\u4e2a\u7f51\u9875\u5e94\u7528\u7a0b\u5e8f - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/\u6211\u5c1d\u8bd5\u4f7f\u7528-polymer-dart-start-\u5236\u4f5c\u4e86\u4e00\u4e2a\u7f51\u9875\u5e94\u7528\u7a0b\u5e8f\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u6211\u5c1d\u8bd5\u4f7f\u7528 Polymer.dart + start \u5236\u4f5c\u4e86\u4e00\u4e2a\u7f51\u9875\u5e94\u7528\u7a0b\u5e8f","og_description":"Dartsummit\u4e2d\u3005\u30a2\u30c4\u30a2\u30c4\u3067\u3057\u305f\u306d\uff08\u3061\u3087\u308d\u3063\u3068\u3057\u304b\u898b\u3066\u306a\u3044\u3051\u3069\uff09\u3002 DartVM\u306e\u5922\u3092\u6368\u3066\u305f\u4ee3\u308f\u308a\u306b\u73fe\u5b9f [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u6211\u5c1d\u8bd5\u4f7f\u7528-polymer-dart-start-\u5236\u4f5c\u4e86\u4e00\u4e2a\u7f51\u9875\u5e94\u7528\u7a0b\u5e8f\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-02-16T12:28:03+00:00","article_modified_time":"2024-04-28T23:59:47+00:00","author":"\u6e05, \u626c","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u6e05, \u626c","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e4%bd%bf%e7%94%a8-polymer-dart-start-%e5%88%b6%e4%bd%9c%e4%ba%86%e4%b8%80%e4%b8%aa%e7%bd%91%e9%a1%b5%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e4%bd%bf%e7%94%a8-polymer-dart-start-%e5%88%b6%e4%bd%9c%e4%ba%86%e4%b8%80%e4%b8%aa%e7%bd%91%e9%a1%b5%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f%e3%80%82\/","name":"\u6211\u5c1d\u8bd5\u4f7f\u7528 Polymer.dart + start \u5236\u4f5c\u4e86\u4e00\u4e2a\u7f51\u9875\u5e94\u7528\u7a0b\u5e8f - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-02-16T12:28:03+00:00","dateModified":"2024-04-28T23:59:47+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/cb5556d2501da73d864cac945e8d9461"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e4%bd%bf%e7%94%a8-polymer-dart-start-%e5%88%b6%e4%bd%9c%e4%ba%86%e4%b8%80%e4%b8%aa%e7%bd%91%e9%a1%b5%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e4%bd%bf%e7%94%a8-polymer-dart-start-%e5%88%b6%e4%bd%9c%e4%ba%86%e4%b8%80%e4%b8%aa%e7%bd%91%e9%a1%b5%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e4%bd%bf%e7%94%a8-polymer-dart-start-%e5%88%b6%e4%bd%9c%e4%ba%86%e4%b8%80%e4%b8%aa%e7%bd%91%e9%a1%b5%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u6211\u5c1d\u8bd5\u4f7f\u7528 Polymer.dart + start \u5236\u4f5c\u4e86\u4e00\u4e2a\u7f51\u9875\u5e94\u7528\u7a0b\u5e8f"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/cb5556d2501da73d864cac945e8d9461","name":"\u6e05, \u626c","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g","caption":"\u6e05, \u626c"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/qingyang\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%b0%9d%e8%af%95%e4%bd%bf%e7%94%a8-polymer-dart-start-%e5%88%b6%e4%bd%9c%e4%ba%86%e4%b8%80%e4%b8%aa%e7%bd%91%e9%a1%b5%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f%e3%80%82\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/34700","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=34700"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/34700\/revisions"}],"predecessor-version":[{"id":84027,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/34700\/revisions\/84027"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=34700"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=34700"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=34700"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}