{"id":1546,"date":"2024-11-10T09:57:03","date_gmt":"2024-11-10T01:57:03","guid":{"rendered":"https:\/\/fwq.ai\/blog\/1546\/"},"modified":"2024-11-10T09:57:03","modified_gmt":"2024-11-10T01:57:03","slug":"javascript-%e8%bf%90%e8%a1%8c%e6%97%b6%e9%94%99%e8%af%af%e6%8f%90%e7%a4%ba-%e6%9c%aa%e5%ae%9a%e4%b9%89%ef%bc%8c%e5%a6%82%e4%bd%95%e8%a7%a3%e5%86%b3%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/1546\/","title":{"rendered":"JavaScript \u8fd0\u884c\u65f6\u9519\u8bef\u63d0\u793a &#8220;$ \u672a\u5b9a\u4e49&#8221;\uff0c\u5982\u4f55\u89e3\u51b3\uff1f"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/173046204423136.jpg\" class=\"aligncenter\" title=\"JavaScript \u8fd0\u884c\u65f6\u9519\u8bef\u63d0\u793a &#8220;$ \u672a\u5b9a\u4e49&#8221;\uff0c\u5982\u4f55\u89e3\u51b3\uff1f\u63d2\u56fe\" alt=\"JavaScript \u8fd0\u884c\u65f6\u9519\u8bef\u63d0\u793a &#8220;$ \u672a\u5b9a\u4e49&#8221;\uff0c\u5982\u4f55\u89e3\u51b3\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>javascript \u8fd0\u884c\u65f6\u9519\u8bef\u63d0\u793a $ \u672a\u5b9a\u4e49\uff0c\u5982\u4f55\u89e3\u51b3\uff1f<\/strong><\/p>\n<p>\u6b64\u95ee\u9898\u4e00\u822c\u51fa\u73b0\u5728 javascript \u4ee3\u7801\u4e2d\u4f7f\u7528 $ \u672a\u5b9a\u4e49\u5bf9\u8c61\u7684\u60c5\u51b5\u4e0b\u3002\u6839\u636e\u60a8\u7684\u63cf\u8ff0\u548c\u63d0\u4f9b\u7684\u4ee3\u7801\u7247\u6bb5\uff0c\u9519\u8bef\u53ef\u80fd\u662f\u7531\u4ee5\u4e0b\u539f\u56e0\u9020\u6210\u7684\uff1a<\/p>\n<p>\u60a8\u5728\u4ee3\u7801\u4e2d\u4f7f\u7528\u4e86 $\uff0c\u5b83\u4ee3\u8868 jquery \u5bf9\u8c61\u3002\u4f46\u662f\uff0c\u60a8\u7684\u4ee3\u7801\u4e2d\u6ca1\u6709\u5305\u542b jquery \u5e93\u3002\u56e0\u6b64\uff0c$ \u5bf9\u8c61\u6ca1\u6709\u88ab\u5b9a\u4e49\uff0c\u4ece\u800c\u5bfc\u81f4\u4e86\u8fd0\u884c\u65f6\u9519\u8bef\u3002<\/p>\n<p><strong>\u89e3\u51b3\u65b9\u6cd5\uff1a<\/strong><\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<p>\u8981\u89e3\u51b3\u6b64\u95ee\u9898\uff0c\u9700\u8981\u5728\u60a8\u7684\u4ee3\u7801\u4e2d\u5305\u542b jquery \u5e93\u3002\u4ee5\u4e0b\u662f\u5982\u4f55\u64cd\u4f5c\uff1a<\/p>\n<ol>\n<li>\u5728\u60a8\u7684 html \u9875\u9762\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u811a\u672c\u6807\u7b7e\uff1a<\/li>\n<\/ol>\n<pre>&lt;script src=\"https:\/\/code.jquery.com\/jquery-3.5.1.min.js\"&gt;&lt;\/script&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<ol>\n<li>\u786e\u4fdd\u5728\u4f7f\u7528 $ \u4e4b\u524d\u5305\u542b\u6b64\u811a\u672c\u3002<\/li>\n<\/ol>\n<p>\u4ee3\u7801\u7247\u6bb5\u4fee\u6539\u540e\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n<pre>\n  \n&lt;script src=\"https:\/\/code.jquery.com\/jquery-3.5.1.min.js\"&gt;&lt;\/script&gt;\n\n&lt;script&gt;\n  \/\/ \u4f7f\u7528 $ \u4e4b\u524d\u786e\u4fdd\u5305\u542b jQuery \u5e93\n  $(\"[name=input_DisasterStartTime]\").datetimepicker({});\n&lt;\/script&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u8fd9\u6837\u5c31\u53ef\u4ee5\u89e3\u51b3 $ \u672a\u5b9a\u4e49\u7684\u9519\u8bef\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fJavaScript \u8fd0\u884c\u65f6\u9519\u8bef\u63d0\u793a &#8220;$ \u672a\u5b9a\u4e49&#8221;\uff0c\u5982\u4f55\u89e3\u51b3\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>javascript \u8fd0\u884c\u65f6\u9519\u8bef\u63d0\u793a $ \u672a\u5b9a\u4e49\uff0c\u5982\u4f55\u89e3\u51b3\uff1f \u6b64\u95ee\u9898\u4e00\u822c\u51fa\u73b0\u5728 javascript \u4ee3\u7801\u4e2d\u4f7f\u7528 $ \u672a\u5b9a\u4e49\u5bf9\u8c61\u7684\u60c5\u51b5\u4e0b\u3002\u6839\u636e\u60a8\u7684\u63cf\u8ff0\u548c\u63d0\u4f9b\u7684\u4ee3\u7801\u7247\u6bb5\uff0c\u9519\u8bef\u53ef\u80fd\u662f\u7531\u4ee5\u4e0b\u539f\u56e0\u9020\u6210\u7684\uff1a \u60a8\u5728\u4ee3\u7801\u4e2d\u4f7f\u7528\u4e86 $\uff0c\u5b83\u4ee3\u8868 jquery \u5bf9\u8c61\u3002\u4f46\u662f\uff0c\u60a8\u7684\u4ee3\u7801\u4e2d\u6ca1\u6709\u5305\u542b jquery \u5e93\u3002\u56e0\u6b64\uff0c$ \u5bf9\u8c61\u6ca1\u6709\u88ab\u5b9a\u4e49\uff0c\u4ece\u800c\u5bfc\u81f4\u4e86\u8fd0\u884c\u65f6\u9519\u8bef\u3002 \u89e3\u51b3\u65b9\u6cd5\uff1a \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b \u8981\u89e3\u51b3\u6b64\u95ee\u9898\uff0c\u9700\u8981\u5728\u60a8\u7684\u4ee3\u7801\u4e2d\u5305\u542b jquery \u5e93\u3002\u4ee5\u4e0b\u662f\u5982\u4f55\u64cd\u4f5c\uff1a \u5728\u60a8\u7684 html \u9875\u9762\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u811a\u672c\u6807\u7b7e\uff1a &lt;script src=&#8221;https:\/\/code.jquery.com\/jquery-3.5.1.min.js&#8221;&gt;&lt;\/script&gt; \u767b\u5f55\u540e\u590d\u5236 \u786e\u4fdd\u5728\u4f7f\u7528 $ \u4e4b\u524d\u5305\u542b\u6b64\u811a\u672c\u3002 \u4ee3\u7801\u7247\u6bb5\u4fee\u6539\u540e\u5982\u4e0b\u6240\u793a\uff1a &lt;script src=&#8221;https:\/\/code.jquery.com\/jquery-3.5.1.min.js&#8221;&gt;&lt;\/script&gt; &lt;script&gt; \/\/ \u4f7f\u7528 $ \u4e4b\u524d\u786e\u4fdd\u5305\u542b jQuery \u5e93 $(&#8220;[name=input_DisasterStartTime]&#8221;).datetimepicker({}); &lt;\/script&gt; \u767b\u5f55\u540e\u590d\u5236 \u8fd9\u6837\u5c31\u53ef\u4ee5\u89e3\u51b3 $ \u672a\u5b9a\u4e49\u7684\u9519\u8bef\u3002 \u4ee5\u4e0a\u5c31\u662fJavaScript \u8fd0\u884c\u65f6\u9519\u8bef\u63d0\u793a &#8220;$ \u672a\u5b9a\u4e49&#8221;\uff0c\u5982\u4f55\u89e3\u51b3\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-1546","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/1546","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=1546"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/1546\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=1546"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=1546"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=1546"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}