{"id":1008,"date":"2022-04-07T22:17:22","date_gmt":"2022-04-07T14:17:22","guid":{"rendered":"http:\/\/www.wayln.com\/?p=1008"},"modified":"2022-04-07T23:03:06","modified_gmt":"2022-04-07T15:03:06","slug":"%e5%bb%ba%e7%ab%8bcontroller%e4%bd%bf%e7%94%a8taghelper","status":"publish","type":"post","link":"https:\/\/www.wayln.com\/?p=1008","title":{"rendered":"\u5efa\u7acbController,\u4f7f\u7528TagHelper"},"content":{"rendered":"<div id=\"toc_container\" class=\"toc_transparent no_bullets\"><p class=\"toc_title\">Contents<\/p><ul class=\"toc_list\"><li><a href=\"#MVC\"><span class=\"toc_number toc_depth_1\">1<\/span> \u4f7f\u7528MVC\u76f8\u5173\u6280\u672f<\/a><\/li><li><a href=\"#Tag_Helper\"><span class=\"toc_number toc_depth_1\">2<\/span> Tag Helper<\/a><\/li><\/ul><\/div>\n<p>[TOC]<\/p>\n<h1><span id=\"MVC\">\u4f7f\u7528MVC\u76f8\u5173\u6280\u672f<\/span><\/h1>\n<ul>\n<li>Controller<\/li>\n<li>Tag Helper<\/li>\n<li>Settings<\/li>\n<li>ViewComponent<\/li>\n<li>RazorPage<\/li>\n<\/ul>\n<h1><span id=\"Tag_Helper\">Tag Helper<\/span><\/h1>\n<p>\u5728_Layout,cshtm\u4e2d\u6dfb\u52a0\u6839\u636e\u73af\u5883\u53d8\u5316\u7684\u8bed\u53e5<\/p>\n<pre data-language=HTML><code class=\"language-markup line-numbers\">&lt;head&gt;\n    &lt;environment include=\"Development\"&gt;\n        &lt;link rel=\"stylesheet\" asp-href-include=\"css\/*\" asp-href-exclude=\"css\/all.min.css\"\/&gt;\n    &lt;\/environment&gt;\n        &lt;environment include=\"Product\"&gt;\n        &lt;link rel=\"stylesheet\" asp-href-include=\"css\/all.min.css\" \/&gt;\n    &lt;\/environment&gt;\n&lt;\/head&gt;\n<\/code><\/pre>\n<pre data-language=HTML><code class=\"language-markup line-numbers\">&lt;img asp-append-version=\"true\" alt=\"Logo\" src=\"images\/logo.png\" &gt;\n<\/code><\/pre>\n<p>asp-append-version,\u53ef\u4ee5\u6bcf\u6b21\u5237\u65b0\u90fd\u4f1a\u66f4\u65b0\u56fe\u7247\uff0c\u9632\u6b62\u7f13\u5b58\u5bfc\u81f4\u5237\u65b0\u4e4b\u540e\u56fe\u7247\u6ca1\u53d8\u5316<br \/>\nasp-action \u6307\u5411\u5bf9\u5e94\u7684\u65b9\u6cd5<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Contents1 \u4f7f\u7528MVC\u76f8\u5173\u6280\u672f2 Tag Helper [TOC] \u4f7f\u7528MVC\u76f8\u5173\u6280\u672f Control [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[44,4,2],"tags":[],"class_list":["post-1008","post","type-post","status-publish","format-standard","hentry","category-asp-net-core","category-c","category-2"],"_links":{"self":[{"href":"https:\/\/www.wayln.com\/index.php?rest_route=\/wp\/v2\/posts\/1008","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wayln.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wayln.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wayln.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wayln.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1008"}],"version-history":[{"count":9,"href":"https:\/\/www.wayln.com\/index.php?rest_route=\/wp\/v2\/posts\/1008\/revisions"}],"predecessor-version":[{"id":1026,"href":"https:\/\/www.wayln.com\/index.php?rest_route=\/wp\/v2\/posts\/1008\/revisions\/1026"}],"wp:attachment":[{"href":"https:\/\/www.wayln.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1008"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wayln.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1008"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wayln.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1008"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}