{"id":3663,"date":"2022-10-07T19:51:18","date_gmt":"2022-10-07T11:51:18","guid":{"rendered":"https:\/\/www.citerp.com.tw\/citwordpress\/?p=3663"},"modified":"2023-12-20T11:52:08","modified_gmt":"2023-12-20T03:52:08","slug":"javascript-getdatefun001","status":"publish","type":"post","link":"https:\/\/www.citerp.com.tw\/citwordpress\/javascript-getdatefun001\/","title":{"rendered":"\u65e5\u671f\u683c\u5f0f\u8f49\u63db JavaScript \u4eca\u5929\u3001\u6628\u5929\u3001\u672c\u5468\u3001\u4e0a\u5468\u3001\u672c\u6708\u3001\u4e0a\u6708\u3001\u4e0a\u5e74\u3001\u65e5\u671f\u6aa2\u67e5"},"content":{"rendered":"\n<p>\/\/\u7372\u5f97\u672c\u5468\u7684\u958b\u59cb\u65e5\u671f<br>\/\/getWeekStartDate()<br>\/\/\u7372\u5f97\u672c\u5468\u7684\u7d50\u675f\u65e5\u671f<br>\/\/getWeekEndDate()<\/p>\n\n\n\n<p>\/\/\u7372\u5f97\u4e0a\u5468\u7684\u958b\u59cb\u65e5\u671f<br>\/\/getLastWeekStartDate()<br>\/\/\u7372\u5f97\u4e0a\u5468\u7684\u7d50\u675f\u65e5\u671f<br>\/\/getLastWeekEndDate()<\/p>\n\n\n\n<p>\/\/\u7372\u5f97\u672c\u6708\u7684\u958b\u59cb\u65e5\u671f<br>\/\/getMonthStartDate()<br>\/\/\u7372\u5f97\u672c\u6708\u7684\u7d50\u675f\u65e5\u671f<br>\/\/getMonthEndDate()<\/p>\n\n\n\n<p>\/\/\u7372\u5f97\u4e0a\u6708\u958b\u59cb\u65e5\u671f<br>function getLastMonthStartDate()<br>\/\/\u7372\u5f97\u4e0a\u6708\u7d50\u675f\u65e5\u671f<br>function getLastMonthEndDate()<\/p>\n\n\n\n<p>\/\/\u7372\u5f97Q1\u958b\u59cb\u65e5\u671f<br>\/\/getQ1StartDate()<br>\/\/\u7372\u5f97Q1\u7d50\u675f\u65e5\u671f<br>\/\/getQ1EndDate()<\/p>\n\n\n\n<p>\/\/\u7372\u5f97Q2\u958b\u59cb\u65e5\u671f<br>\/\/getQ2StartDate()<br>\/\/\u7372\u5f97Q2\u7d50\u675f\u65e5\u671f<br>\/\/getQ2EndDate()<\/p>\n\n\n\n<p>\/\/\u7372\u5f97Q3\u958b\u59cb\u65e5\u671f<br>\/\/getQ3StartDate()<br>\/\/\u7372\u5f97Q3\u7d50\u675f\u65e5\u671f<br>\/\/getQ3EndDate()<\/p>\n\n\n\n<p>\/\/\u7372\u5f97Q4\u958b\u59cb\u65e5\u671f<br>\/\/getQ4StartDate()<br>\/\/\u7372\u5f97Q4\u7d50\u675f\u65e5\u671f<br>\/\/getQ4EndDate()<\/p>\n\n\n\n<p>\/\/\u7372\u5f97lastYear\u958b\u59cb\u65e5\u671f<br>\/\/getLastYearStartDate()<\/p>\n\n\n\n<p>\/\/\u7372\u5f97lastYear\u7d50\u675f\u65e5\u671f<br>\/\/getLastYearEndDate()<\/p>\n\n\n\n<p>\/\/\u683c\u5f0f\u5316\u65e5\u671f<br>\/\/formatDate<\/p>\n\n\n\n<p>\/\/\u7372\u5f97\u672c\u6708\u7684\u5929\u6578<br>\/\/getThisMonthDays<br>\/\/\u7372\u5f97\u4e0a\u6708\u7684\u5929\u6578<br>\/\/getLastMonthDays<\/p>\n\n\n\n<p>\/\/\u53bb\u9664\u6642\u5206\u79d2 set Date to 00:00:00<br>function DateToZero<\/p>\n\n\n\n<p>\/\/\u6aa2\u67e5\u65e5\u671f\u7684\u7d50\u675f\u6642\u9593\u4e0d\u80fd\u5c0f\u65bc\u958b\u59cb\u503c\u9593<br>\/\/CheckDate<br>\/\/\u6aa2\u67e5\u65e5\u671f\u7684\u958b\u59cb\u548c\u7d50\u675f\u6642\u9593\u662f\u5426\u70ba\u540c\u4e00\u5929<br>\/\/CheckTheSameDate<\/p>\n\n\n\n<p>\/\/\u4ee5\u4eca\u5929\u70ba\u57fa\u6e96\uff0c\u8a08\u7b97\u5f80\u524d\u3001\u5f80\u5f8c\u7684\u5e7e\u5929<br>\/\/getDateCount<\/p>\n\n\n\n<p>\u547c\u53eb\u7bc4\u4f8b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>console.log(getDateCount(1));\nconsole.log(getDateCount(-1));\nconst d = new Date();\nconsole.log(CheckDate(d,d));\nconsole.log(CheckTheSameDate(d,d));<\/code><\/pre>\n\n\n\n<p>\u4ee5\u4e0b\u7a0b\u5f0f\u78bc\uff0c\u8907\u88fd\u8cbc\u4e0a\u5230.js\uff0c\u5373\u53ef\u547c\u53eb\u5404\u51fd\u5f0f\u4f7f\u7528\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/20221007 \u65e5\u671f\u51fd\u6578\n\/\/=========================================================================================================\n\/\/\u7372\u5f97\u672c\u5468\u7684\u958b\u59cb\u65e5\u671f\n\/\/getWeekStartDate(): string {\nfunction getWeekStartDate()\n{\n\tconst now = new Date(); \/\/\u7576\u524d\u65e5\u671f\n\tconst nowDayOfWeek = now.getDay(); \/\/\u4eca\u5929\u672c\u5468\u7684\u7b2c\u5e7e\u5929 0\uff08\u5468\u65e5\uff09 \u5230 6\uff08\u5468\u516d\uff09\n\tconst nowDay = now.getDate(); \/\/\u7576\u524d\u65e5\n\tconst nowMonth = now.getMonth(); \/\/\u7576\u524d\u6708 0\uff081\u6708\uff09\u5230 11\uff0812\u6708\uff09\n\tlet nowYear = now.getFullYear(); \/\/\u7576\u524d\u5e74\n\tnowYear += (nowYear &lt; 2000) ? 1900 : 0;\n\n\tlet lastMonthDate = new Date(); \/\/\u4e0a\u6708\u65e5\u671f\n\tlastMonthDate.setDate(1);\n\tlastMonthDate.setMonth(lastMonthDate.getMonth() - 1);\n\n\tconst weekStartDate = new Date(\n\t\tnowYear, nowMonth, nowDay - nowDayOfWeek\n\t);\n\treturn this.formatDate(weekStartDate);\n}\n\n\/\/\u7372\u5f97\u672c\u5468\u7684\u7d50\u675f\u65e5\u671f\n\/\/getWeekEndDate(): string {\nfunction getWeekEndDate()\n{\n\tconst now = new Date(); \/\/\u7576\u524d\u65e5\u671f\n\tconst nowDayOfWeek = now.getDay(); \/\/\u4eca\u5929\u672c\u5468\u7684\u7b2c\u5e7e\u5929 0\uff08\u5468\u65e5\uff09 \u5230 6\uff08\u5468\u516d\uff09\n\tconst nowDay = now.getDate(); \/\/\u7576\u524d\u65e5\n\tconst nowMonth = now.getMonth(); \/\/\u7576\u524d\u6708 0\uff081\u6708\uff09\u5230 11\uff0812\u6708\uff09\n\tlet nowYear = now.getFullYear(); \/\/\u7576\u524d\u5e74\n\tnowYear += (nowYear &lt; 2000) ? 1900 : 0;\n\n\tlet lastMonthDate = new Date(); \/\/\u4e0a\u6708\u65e5\u671f\n\tlastMonthDate.setDate(1);\n\tlastMonthDate.setMonth(lastMonthDate.getMonth() - 1);\n\n\tconst weekEndDate = new Date(\n\t\tnowYear, nowMonth, nowDay + (6 - nowDayOfWeek)\n\t);\n\treturn this.formatDate(weekEndDate);\n}\n\n\/\/\u7372\u5f97\u4e0a\u5468\u7684\u958b\u59cb\u65e5\u671f\n\/\/getLastWeekStartDate(): string {\nfunction getLastWeekStartDate()\n{\n\tconst now = new Date(); \/\/\u7576\u524d\u65e5\u671f\n\tconst nowDayOfWeek = now.getDay(); \/\/\u4eca\u5929\u672c\u5468\u7684\u7b2c\u5e7e\u5929 0\uff08\u5468\u65e5\uff09 \u5230 6\uff08\u5468\u516d\uff09\n\tconst nowDay = now.getDate(); \/\/\u7576\u524d\u65e5\n\tconst nowMonth = now.getMonth(); \/\/\u7576\u524d\u6708 0\uff081\u6708\uff09\u5230 11\uff0812\u6708\uff09\n\tlet nowYear = now.getFullYear(); \/\/\u7576\u524d\u5e74\n\tnowYear += (nowYear &lt; 2000) ? 1900 : 0;\n\n\tlet lastMonthDate = new Date(); \/\/\u4e0a\u6708\u65e5\u671f\n\tlastMonthDate.setDate(1);\n\tlastMonthDate.setMonth(lastMonthDate.getMonth() - 1);\n\n\tconst weekStartDate = new Date(\n\t\t nowYear, nowMonth, nowDay - nowDayOfWeek - 7\n   );\n\treturn formatDate(weekStartDate);\n}\n\n\/\/\u7372\u5f97\u4e0a\u5468\u7684\u7d50\u675f\u65e5\u671f\n\/\/getLastWeekEndDate(): string {\nfunction getLastWeekEndDate()\n{\n    const now = new Date(); \/\/\u7576\u524d\u65e5\u671f\n    const nowDayOfWeek = now.getDay(); \/\/\u4eca\u5929\u672c\u5468\u7684\u7b2c\u5e7e\u5929 0\uff08\u5468\u65e5\uff09 \u5230 6\uff08\u5468\u516d\uff09\n    const nowDay = now.getDate(); \/\/\u7576\u524d\u65e5\n    const nowMonth = now.getMonth(); \/\/\u7576\u524d\u6708 0\uff081\u6708\uff09\u5230 11\uff0812\u6708\uff09\n    let nowYear = now.getFullYear(); \/\/\u7576\u524d\u5e74\n    nowYear += (nowYear &lt; 2000) ? 1900 : 0;\n\n    let lastMonthDate = new Date(); \/\/\u4e0a\u6708\u65e5\u671f\n    lastMonthDate.setDate(1);\n    lastMonthDate.setMonth(lastMonthDate.getMonth() - 1);\n\n    const weekEndDate = new Date(\n        nowYear, nowMonth, nowDay - nowDayOfWeek - 1\n    );\n    return this.formatDate(weekEndDate);\n}\n\n\/\/\u7372\u5f97\u672c\u6708\u7684\u958b\u59cb\u65e5\u671f\n\/\/getMonthStartDate(): string {\nfunction getMonthStartDate(){\n\tconst now = new Date(); \/\/\u7576\u524d\u65e5\u671f\n\tconst nowMonth = now.getMonth(); \/\/\u7576\u524d\u6708 0\uff081\u6708\uff09\u5230 11\uff0812\u6708\uff09\n\tlet nowYear = now.getFullYear(); \/\/\u7576\u524d\u5e74\n\tnowYear += (nowYear &lt; 2000) ? 1900 : 0;\n\n\tlet lastMonthDate = new Date(); \/\/\u4e0a\u6708\u65e5\u671f\n\tlastMonthDate.setDate(1);\n\tlastMonthDate.setMonth(lastMonthDate.getMonth() - 1);\n\n\tconst monthStartDate = new Date(nowYear, nowMonth, 1);\n\treturn this.formatDate(monthStartDate);\n}\n\n\/\/\u7372\u5f97\u672c\u6708\u7684\u7d50\u675f\u65e5\u671f\n\/\/getMonthEndDate(): string {\nfunction getMonthEndDate()\n{\n\tconst now = new Date(); \/\/\u7576\u524d\u65e5\u671f\n\tconst nowMonth = now.getMonth(); \/\/\u7576\u524d\u6708 0\uff081\u6708\uff09\u5230 11\uff0812\u6708\uff09\n\tlet nowYear = now.getFullYear(); \/\/\u7576\u524d\u5e74\n\tnowYear += (nowYear &lt; 2000) ? 1900 : 0;\n\n\tlet lastMonthDate = new Date(); \/\/\u4e0a\u6708\u65e5\u671f\n\tlastMonthDate.setDate(1);\n\tlastMonthDate.setMonth(lastMonthDate.getMonth() - 1);\n\n\tconst monthEndDate = new Date(\n\t\tnowYear, nowMonth, \n\t\tthis.getThisMonthDays(nowYear, nowMonth + 1)\n\t);\n\treturn this.formatDate(monthEndDate);\n}\n\n\/\/\u7372\u5f97\u4e0a\u6708\u958b\u59cb\u65e5\u671f\nfunction getLastMonthStartDate(){\n\tconst now = new Date(); \/\/\u7576\u524d\u65e5\u671f\n\tlet nowYear = now.getFullYear(); \/\/\u7576\u524d\u5e74\n\tnowYear += (nowYear &lt; 2000) ? 1900 : 0;\n\n\tlet lastMonthDate = new Date(); \/\/\u4e0a\u6708\u65e5\u671f\n\tlastMonthDate.setDate(1);\n\tlastMonthDate.setMonth(lastMonthDate.getMonth() - 1);\n\tconst lastYear = lastMonthDate.getFullYear();\n\tconst lastMonth = lastMonthDate.getMonth();\n\n\tconst lastMonthStartDate = new Date(nowYear, lastMonth, 1);\n\treturn this.formatDate(lastMonthStartDate);\n}\n\n\/\/\u7372\u5f97\u4e0a\u6708\u7d50\u675f\u65e5\u671f\nfunction getLastMonthEndDate(){\n\tconst now = new Date(); \/\/\u7576\u524d\u65e5\u671f\n\tconst nowMonth = now.getMonth(); \/\/\u7576\u524d\u6708 0\uff081\u6708\uff09\u5230 11\uff0812\u6708\uff09\n\tlet nowYear = now.getFullYear(); \/\/\u7576\u524d\u5e74\n\tnowYear += (nowYear &lt; 2000) ? 1900 : 0;\n\n\tlet lastMonthDate = new Date(); \/\/\u4e0a\u6708\u65e5\u671f\n\tlastMonthDate.setDate(1);\n\tlastMonthDate.setMonth(lastMonthDate.getMonth() - 1);\n\tconst lastMonth = lastMonthDate.getMonth();\n\n\tconst lastMonthEndDate = new Date(\n\t\tnowYear, lastMonth, \n\t\tthis.getLastMonthDays(nowYear, nowMonth)\n\t);\n\treturn this.formatDate(lastMonthEndDate);\n}\n\n\/\/\u7372\u5f97Q1\u958b\u59cb\u65e5\u671f\n\/\/getQ1StartDate(): string {\nfunction getQ1StartDate()\n{\n\tconst now = new Date(); \/\/\u7576\u524d\u65e5\u671f\n\tlet nowYear = now.getFullYear()-1; \/\/\u7576\u524d\u5e74\n\tnowYear += (nowYear &lt; 2000) ? 1900 : 0;\n\n\tconst Q1StartDate = new Date(nowYear, 0, 1);\n\treturn this.formatDate(Q1StartDate);\n}\n\n\/\/\u7372\u5f97Q1\u7d50\u675f\u65e5\u671f\n\/\/getQ1EndDate(): string {\nfunction getQ1EndDate()\n{\n\tconst now = new Date(); \/\/\u7576\u524d\u65e5\u671f\n\tlet nowYear = now.getFullYear()-1; \/\/\u7576\u524d\u5e74\n\tnowYear += (nowYear &lt; 2000) ? 1900 : 0;\n\n\tconst Q1EndDate = new Date(nowYear, 2, 31);\n\treturn this.formatDate(Q1EndDate);\n}\n\/\/\u7372\u5f97Q2\u958b\u59cb\u65e5\u671f\n\/\/getQ2StartDate(): string {\nfunction getQ2StartDate()\n{\n\tconst now = new Date(); \/\/\u7576\u524d\u65e5\u671f\n\tlet nowYear = now.getFullYear()-1; \/\/\u7576\u524d\u5e74\n\tnowYear += (nowYear &lt; 2000) ? 1900 : 0;\n\n\tconst Q2StartDate = new Date(nowYear, 3, 1);\n\treturn this.formatDate(Q2StartDate);\n}\n\n\/\/\u7372\u5f97Q2\u7d50\u675f\u65e5\u671f\n\/\/getQ2EndDate(): string {\nfunction getQ2EndDate()\n{\n\tconst now = new Date(); \/\/\u7576\u524d\u65e5\u671f\n\tlet nowYear = now.getFullYear()-1; \/\/\u7576\u524d\u5e74\n\tnowYear += (nowYear &lt; 2000) ? 1900 : 0;\n\n\tconst Q2EndDate = new Date(nowYear, 5, 30);\n\treturn this.formatDate(Q2EndDate);\n}\n\n\/\/\u7372\u5f97Q3\u958b\u59cb\u65e5\u671f\n\/\/getQ3StartDate(): string {\nfunction getQ3StartDate()\n{\n\tconst now = new Date(); \/\/\u7576\u524d\u65e5\u671f\n\tlet nowYear = now.getFullYear()-1; \/\/\u7576\u524d\u5e74\n\tnowYear += (nowYear &lt; 2000) ? 1900 : 0;\n\n\tconst Q3StartDate = new Date(nowYear, 6, 1);\n\treturn this.formatDate(Q3StartDate);\n}\n\n\/\/\u7372\u5f97Q3\u7d50\u675f\u65e5\u671f\n\/\/getQ3EndDate(): string {\nfunction getQ3EndDate()\n{\n\tconst now = new Date(); \/\/\u7576\u524d\u65e5\u671f\n\tlet nowYear = now.getFullYear()-1; \/\/\u7576\u524d\u5e74\n\tnowYear += (nowYear &lt; 2000) ? 1900 : 0;\n\n\tconst Q3EndDate = new Date(nowYear, 8, 30);\n\treturn this.formatDate(Q3EndDate);\n}\n\n\/\/\u7372\u5f97Q4\u958b\u59cb\u65e5\u671f\n\/\/getQ4StartDate(): string {\nfunction getQ4StartDate()\n{\n\tconst now = new Date(); \/\/\u7576\u524d\u65e5\u671f\n\tlet nowYear = now.getFullYear()-1; \/\/\u7576\u524d\u5e74\n\tnowYear += (nowYear &lt; 2000) ? 1900 : 0;\n\n\tconst Q4StartDate = new Date(nowYear, 9, 1);\n\treturn this.formatDate(Q4StartDate);\n}\n\n\/\/\u7372\u5f97Q4\u7d50\u675f\u65e5\u671f\n\/\/getQ4EndDate(): string {\nfunction getQ4EndDate()\n{\n\tconst now = new Date(); \/\/\u7576\u524d\u65e5\u671f\n\tlet nowYear = now.getFullYear()-1; \/\/\u7576\u524d\u5e74\n\tnowYear += (nowYear &lt; 2000) ? 1900 : 0;\n\n\tconst Q4EndDate = new Date(nowYear, 11, 31);\n\treturn this.formatDate(Q4EndDate);\n}\n\n\/\/\u7372\u5f97lastYear\u958b\u59cb\u65e5\u671f\n\/\/getLastYearStartDate(): string {\nfunction getLastYearStartDate()\n{\n\tconst now = new Date(); \/\/\u7576\u524d\u65e5\u671f\n\tlet nowYear = now.getFullYear()-1; \/\/\u7576\u524d\u5e74-1\n\tnowYear += (nowYear &lt; 2000) ? 1900 : 0;\n\n\tconst thisYearStartDate = new Date(nowYear, 0, 1);\n\treturn this.formatDate(thisYearStartDate);\n}\n\n\/\/\u7372\u5f97lastYear\u7d50\u675f\u65e5\u671f\n\/\/getLastYearEndDate(): string {\nfunction getLastYearEndDate()\n{\n\tconst now = new Date(); \/\/\u7576\u524d\u65e5\u671f\n\tlet nowYear = now.getFullYear()-1; \/\/\u7576\u524d\u5e74-1\n\tnowYear += (nowYear &lt; 2000) ? 1900 : 0;\n\n\tconst lastYearEndDate = new Date(nowYear, 11, 31);\n\treturn this.formatDate(lastYearEndDate);\n}\n\n\n\/\/\u683c\u5f0f\u5316\u65e5\u671f\n\/\/formatDate(dateArg: any): string {\nfunction formatDate(dateArg){\n\tconst date = new Date(dateArg);\n\tconst year = date.getFullYear();\n\tconst month = date.getMonth() + 1;\n\tconst day = date.getDate();\n\tconst formatMonth = month &lt; 10 ? `0${month}` : month;\n\tconst formatDay = day &lt; 10 ? `0${day}` : day;\n\n\treturn `${year}\/${formatMonth}\/${formatDay}`\n}\n\n\/\/\u7372\u5f97\u672c\u6708\u7684\u5929\u6578\n\/\/getThisMonthDays(year: number, month: number): number {\nfunction getThisMonthDays(year, month)\n{\n\tconst now = new Date(); \/\/\u7576\u524d\u65e5\u671f\n\tconst nowMonth = now.getMonth(); \/\/\u7576\u524d\u6708 0\uff081\u6708\uff09\u5230 11\uff0812\u6708\uff09\n\tlet nowYear = now.getFullYear(); \/\/\u7576\u524d\u5e74\n\tnowYear += (nowYear &lt; 2000) ? 1900 : 0;\n\n\tlet lastMonthDate = new Date(); \/\/\u4e0a\u6708\u65e5\u671f\n\tlastMonthDate.setDate(1);\n\tlastMonthDate.setMonth(lastMonthDate.getMonth() - 1);\n\n\tconst thisMonthDays = new Date(nowYear, nowMonth + 1, 0).getDate();\n\treturn thisMonthDays;\n}\n\n\/\/\u7372\u5f97\u4e0a\u6708\u7684\u5929\u6578\n\/\/getLastMonthDays(year: number, month: number): number {\nfunction getLastMonthDays(year, month){\n\tconst now = new Date(); \/\/\u7576\u524d\u65e5\u671f\n\tconst nowMonth = now.getMonth(); \/\/\u7576\u524d\u6708 0\uff081\u6708\uff09\u5230 11\uff0812\u6708\uff09\n\tlet nowYear = now.getFullYear(); \/\/\u7576\u524d\u5e74\n\tnowYear += (nowYear &lt; 2000) ? 1900 : 0;\n\n\tlet lastMonthDate = new Date(); \/\/\u4e0a\u6708\u65e5\u671f\n\tlastMonthDate.setDate(1);\n\tlastMonthDate.setMonth(lastMonthDate.getMonth() - 1);\n\n\tconst lastMonthDays = new Date(nowYear, nowMonth, 0).getDate();\n\treturn lastMonthDays\n}\n\n\/\/\u53bb\u9664\u6642\u5206\u79d2 set Date to 00:00:00\nfunction DateToZero(value){\n    let date = new Date(value.getTime());\n    date.setHours(0, 0, 0, 0);\n    return date;\n}\n\/\/\u6aa2\u67e5\u65e5\u671f\u7684\u7d50\u675f\u6642\u9593\u4e0d\u80fd\u5c0f\u65bc\u958b\u59cb\u503c\u9593\n\/\/CheckDate(startDate: Date, endDate: Date) {\nfunction CheckDate(startDate, endDate){\n    if (this.DateToZero(endDate).getTime() &gt;= this.DateToZero(startDate).getTime())\n\treturn true\n\telse\n\treturn false;\n}\n\/\/\u6aa2\u67e5\u65e5\u671f\u7684\u958b\u59cb\u548c\u7d50\u675f\u6642\u9593\u662f\u5426\u70ba\u540c\u4e00\u5929\n\/\/CheckTheSameDate(startDate: Date, endDate: Date) {\nfunction CheckTheSameDate(startDate, endDate){\n    if (this.DateToZero(endDate).getTime() === this.DateToZero(startDate).getTime())\n\treturn true\n\telse\n\treturn false;\n}\n\/\/\u4ee5\u4eca\u5929\u70ba\u57fa\u6e96\uff0c\u8a08\u7b97\u5f80\u524d\u3001\u5f80\u5f8c\u7684\u5e7e\u5929\n\/\/getDateCount(addDayCount: number): string {\nfunction getDateCount(addDayCount){\n\tconst today = new Date();\n\t\/\/\u7372\u53d6addDayCount\u5929\u5f8c\u7684\u65e5\u671f\n\ttoday.setDate(today.getDate() + addDayCount); \n\tconst year = today.getFullYear();\n\tconst month = today.getMonth() + 1;   \/\/\u7372\u53d6\u7576\u524d\u6708\u4efd\u7684\u65e5\u671f\n\tconst day = today.getDate();\n\tconst formatMonth = month &lt; 10 ? `0${month}` : month;\n\tconst formatDay = day &lt; 10 ? `0${day}` : day;\n\treturn `${year}-${formatMonth}-${formatDay}`\n}<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>\u96fb\u5b50\u767c\u7968\u6280\u8853\u5ba2\u670d\uff0c<strong>\u96fb\u8a71:(02)89782365<\/strong><\/p>\n\n\n\n<p>\u5982\u679c\u6709\u4ec0\u9ebc\u554f\u984c\uff0c\u4e5f\u53ef\u4ee5\u5728\u4e0b\u65b9\u7559\u8a00\u8655\u8207\u6211\u5011\u5206\u4eab\uff0c\u611f\u8b1d\u60a8!!<\/p>\n\n\n\n<p>\u624b\u5200\u8a66\u7528=&gt;<a href=\"https:\/\/buy.citerp.com.tw\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u7c21\u55ae\u738b\u96fb\u5b50\u767c\u7968<\/a> (\u652f\u63f4\u4e32\u63a5ezPay\u3001Amego\u5149\u8cbf)<\/p>\n\n\n\n<p>\u624b\u5200\u8a66\u7528=&gt;<a data-type=\"URL\" data-id=\"https:\/\/buy.citerp.com.tw\/\" href=\"https:\/\/buy.citerp.com.tw\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u8766\u76ae\u5c0d\u5e33\u738b<\/a><\/p>\n\n\n\n<p>\u624b\u5200\u8a66\u7528=&gt;<a rel=\"noreferrer noopener\" href=\"https:\/\/www.citerp.com.tw\/\" target=\"_blank\" data-type=\"URL\" data-id=\"https:\/\/www.citerp.com.tw\/\">\u5eb7\u6377\u96f2\u7aefERP<\/a><\/p>\n\n\n\n<p>\u76f8\u95dc\u6587\u7ae0<\/p>\n\n\n\n<p>\ud83d\udc49 <a href=\"https:\/\/www.citerp.com.tw\/citwordpress\/ezk_opexcelimportbascus01-%e9%80%b2%e5%87%ba%e8%b2%a8%e4%b8%80%e8%a6%bd%e8%a1%a8\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u9032\u51fa\u8ca8\u4e00\u89bd\u8868 \u7c21\u55ae\u738b \u64cd\u4f5c\u6b65\u9a5f\u8a73\u89e3<\/a><\/p>\n\n\n\n<p>\ud83d\udc49 <a href=\"https:\/\/www.citerp.com.tw\/citwordpress\/ezk_filesimportbascus01\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u7c21\u55ae\u738b-\u9032\u51fa\u8ca8\u532f\u5165\u4e0a\u50b3\u5de5\u5177 \u64cd\u4f5c\u6b65\u9a5f\u8a73\u89e3<\/a><\/p>\n\n\n\n<p>\ud83d\udc49 <a href=\"https:\/\/www.citerp.com.tw\/citwordpress\/opspeautochklistm001\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u8766\u76ae\u5c0d\u5e33\u738b-\u8766\u76ae\u5c0d\u5e33\u7d50\u679c\u4e00\u89bd\u8868-\u70ba\u4ec0\u9ebc\u8981\u5c0d\u5e33?\u7121\u5c0d\u61c9???<\/a><\/p>\n\n\n\n<p>\ud83d\udc49 <a href=\"https:\/\/www.citerp.com.tw\/citwordpress\/opspeautochklistm010\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u8766\u76ae\u5c0d\u5e33\u738b-\u5c0d\u5e33\u539f\u7406\u5206\u6790-\u6709\u8a02\u55ae\uff0c\u6709\u64a5\u6b3e\u3060\u3044\u3058\u3087\u3046\u3076(\u5927\u4e08\u592b)\uff1b\u6709\u8a02\u55ae\uff0c\u6c92\u64a5\u6b3e \u6b50NO~~~~~!!!<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"https:\/\/help.shopee.tw\/portal\/article\/79738-[%E8%9D%A6%E7%9A%AE%E6%9C%8D%E5%8B%99]-%E8%A8%82%E5%96%AE%E5%AE%8C%E6%88%90%E5%BE%8C%E4%BB%80%E9%BA%BC%E6%99%82%E5%80%99%E8%83%BD%E5%A4%A0%E6%94%B6%E5%88%B0%E6%AC%BE%E9%A0%85%E5%91%A2%EF%BC%9F?\" target=\"_blank\" rel=\"noreferrer noopener\">[\u8766\u76ae\u670d\u52d9] \u8a02\u55ae\u5b8c\u6210\u5f8c\u4ec0\u9ebc\u6642\u5019\u80fd\u5920\u6536\u5230\u6b3e\u9805\u5462\uff1f<\/a><\/h2>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>JavaScript \u65e5\u671f\u683c\u5f0f\u8f49\u63db \u4eca\u5929\u3001\u6628\u5929\u3001\u672c\u5468\u3001\u4e0a\u5468\u3001\u672c\u6708\u3001\u4e0a\u6708\u3001\u4e0a\u5e74\u3001\u65e5\u671f\u6aa2\u67e5<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"qubely_global_settings":"","qubely_interactions":"","footnotes":""},"categories":[79,374],"tags":[262,80],"class_list":["post-3663","post","type-post","status-publish","format-standard","hentry","category-javascript","category-javascript_date","tag-getdate","tag-javascript"],"qubely_featured_image_url":null,"qubely_author":{"display_name":"\u5eb7\u6377Qoo","author_link":"https:\/\/www.citerp.com.tw\/citwordpress\/author\/cit001\/"},"qubely_comment":0,"qubely_category":"<a href=\"https:\/\/www.citerp.com.tw\/citwordpress\/category\/javascript\/\" rel=\"category tag\">JavaScript<\/a> <a href=\"https:\/\/www.citerp.com.tw\/citwordpress\/category\/javascript\/javascript_date\/\" rel=\"category tag\">JavaScript_date<\/a>","qubely_excerpt":"JavaScript \u65e5\u671f\u683c\u5f0f\u8f49\u63db \u4eca\u5929\u3001\u6628\u5929\u3001\u672c\u5468\u3001\u4e0a\u5468\u3001\u672c\u6708\u3001\u4e0a\u6708\u3001\u4e0a\u5e74\u3001\u65e5\u671f\u6aa2\u67e5","yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u65e5\u671f\u683c\u5f0f\u8f49\u63db JavaScript \u4eca\u5929\u3001\u6628\u5929\u3001\u672c\u5468\u3001\u4e0a\u5468\u3001\u672c\u6708\u3001\u4e0a\u6708\u3001\u4e0a\u5e74\u3001\u65e5\u671f\u6aa2\u67e5 - \u514d\u8cbb\u8cc7\u6e90\u5206\u4eab<\/title>\n<meta name=\"description\" content=\"\u65e5\u671f\u683c\u5f0f\u8f49\u63db JavaScript \u4eca\u5929\u3001\u6628\u5929\u3001\u672c\u5468\u3001\u4e0a\u5468\u3001\u672c\u6708\u3001\u4e0a\u6708\u3001\u4e0a\u5e74\u3001\u65e5\u671f\u6aa2\u67e5\" \/>\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.citerp.com.tw\/citwordpress\/javascript-getdatefun001\/\" \/>\n<meta property=\"og:locale\" content=\"zh_TW\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u65e5\u671f\u683c\u5f0f\u8f49\u63db JavaScript \u4eca\u5929\u3001\u6628\u5929\u3001\u672c\u5468\u3001\u4e0a\u5468\u3001\u672c\u6708\u3001\u4e0a\u6708\u3001\u4e0a\u5e74\u3001\u65e5\u671f\u6aa2\u67e5 - \u514d\u8cbb\u8cc7\u6e90\u5206\u4eab\" \/>\n<meta property=\"og:description\" content=\"\u65e5\u671f\u683c\u5f0f\u8f49\u63db JavaScript \u4eca\u5929\u3001\u6628\u5929\u3001\u672c\u5468\u3001\u4e0a\u5468\u3001\u672c\u6708\u3001\u4e0a\u6708\u3001\u4e0a\u5e74\u3001\u65e5\u671f\u6aa2\u67e5\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.citerp.com.tw\/citwordpress\/javascript-getdatefun001\/\" \/>\n<meta property=\"og:site_name\" content=\"\u514d\u8cbb\u8cc7\u6e90\u5206\u4eab\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/citerptw\" \/>\n<meta property=\"article:published_time\" content=\"2022-10-07T11:51:18+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-20T03:52:08+00:00\" \/>\n<meta name=\"author\" content=\"\u5eb7\u6377Qoo\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005:\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u5eb7\u6377Qoo\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9810\u4f30\u95b1\u8b80\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 \u5206\u9418\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.citerp.com.tw\/citwordpress\/javascript-getdatefun001\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.citerp.com.tw\/citwordpress\/javascript-getdatefun001\/\"},\"author\":{\"name\":\"\u5eb7\u6377Qoo\",\"@id\":\"https:\/\/www.citerp.com.tw\/citwordpress\/#\/schema\/person\/28cfdf2cec7315f2efe90573114fed37\"},\"headline\":\"\u65e5\u671f\u683c\u5f0f\u8f49\u63db JavaScript \u4eca\u5929\u3001\u6628\u5929\u3001\u672c\u5468\u3001\u4e0a\u5468\u3001\u672c\u6708\u3001\u4e0a\u6708\u3001\u4e0a\u5e74\u3001\u65e5\u671f\u6aa2\u67e5\",\"datePublished\":\"2022-10-07T11:51:18+00:00\",\"dateModified\":\"2023-12-20T03:52:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.citerp.com.tw\/citwordpress\/javascript-getdatefun001\/\"},\"wordCount\":63,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.citerp.com.tw\/citwordpress\/#organization\"},\"keywords\":[\"getdate\",\"JavaScript\"],\"articleSection\":[\"JavaScript\",\"JavaScript_date\"],\"inLanguage\":\"zh-TW\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.citerp.com.tw\/citwordpress\/javascript-getdatefun001\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.citerp.com.tw\/citwordpress\/javascript-getdatefun001\/\",\"url\":\"https:\/\/www.citerp.com.tw\/citwordpress\/javascript-getdatefun001\/\",\"name\":\"\u65e5\u671f\u683c\u5f0f\u8f49\u63db JavaScript \u4eca\u5929\u3001\u6628\u5929\u3001\u672c\u5468\u3001\u4e0a\u5468\u3001\u672c\u6708\u3001\u4e0a\u6708\u3001\u4e0a\u5e74\u3001\u65e5\u671f\u6aa2\u67e5 - \u514d\u8cbb\u8cc7\u6e90\u5206\u4eab\",\"isPartOf\":{\"@id\":\"https:\/\/www.citerp.com.tw\/citwordpress\/#website\"},\"datePublished\":\"2022-10-07T11:51:18+00:00\",\"dateModified\":\"2023-12-20T03:52:08+00:00\",\"description\":\"\u65e5\u671f\u683c\u5f0f\u8f49\u63db JavaScript \u4eca\u5929\u3001\u6628\u5929\u3001\u672c\u5468\u3001\u4e0a\u5468\u3001\u672c\u6708\u3001\u4e0a\u6708\u3001\u4e0a\u5e74\u3001\u65e5\u671f\u6aa2\u67e5\",\"breadcrumb\":{\"@id\":\"https:\/\/www.citerp.com.tw\/citwordpress\/javascript-getdatefun001\/#breadcrumb\"},\"inLanguage\":\"zh-TW\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.citerp.com.tw\/citwordpress\/javascript-getdatefun001\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.citerp.com.tw\/citwordpress\/javascript-getdatefun001\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9801\",\"item\":\"https:\/\/www.citerp.com.tw\/citwordpress\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u65e5\u671f\u683c\u5f0f\u8f49\u63db JavaScript \u4eca\u5929\u3001\u6628\u5929\u3001\u672c\u5468\u3001\u4e0a\u5468\u3001\u672c\u6708\u3001\u4e0a\u6708\u3001\u4e0a\u5e74\u3001\u65e5\u671f\u6aa2\u67e5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.citerp.com.tw\/citwordpress\/#website\",\"url\":\"https:\/\/www.citerp.com.tw\/citwordpress\/\",\"name\":\"\u514d\u8cbb\u8cc7\u6e90\u5206\u4eab\",\"description\":\"\u514d\u8cbb\u8cc7\u6e90\u5171\u4eab\",\"publisher\":{\"@id\":\"https:\/\/www.citerp.com.tw\/citwordpress\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.citerp.com.tw\/citwordpress\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-TW\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.citerp.com.tw\/citwordpress\/#organization\",\"name\":\"\u514d\u8cbb\u8cc7\u6e90\u5206\u4eab\",\"url\":\"https:\/\/www.citerp.com.tw\/citwordpress\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-TW\",\"@id\":\"https:\/\/www.citerp.com.tw\/citwordpress\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.citerp.com.tw\/citwordpress\/wp-content\/uploads\/2022\/06\/find2.png\",\"contentUrl\":\"https:\/\/www.citerp.com.tw\/citwordpress\/wp-content\/uploads\/2022\/06\/find2.png\",\"width\":128,\"height\":128,\"caption\":\"\u514d\u8cbb\u8cc7\u6e90\u5206\u4eab\"},\"image\":{\"@id\":\"https:\/\/www.citerp.com.tw\/citwordpress\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/citerptw\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.citerp.com.tw\/citwordpress\/#\/schema\/person\/28cfdf2cec7315f2efe90573114fed37\",\"name\":\"\u5eb7\u6377Qoo\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-TW\",\"@id\":\"https:\/\/www.citerp.com.tw\/citwordpress\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/87fa59ff417f35a6d53f05479d9dd918615095cadddb02e447511edc4f8b6302?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/87fa59ff417f35a6d53f05479d9dd918615095cadddb02e447511edc4f8b6302?s=96&d=mm&r=g\",\"caption\":\"\u5eb7\u6377Qoo\"},\"url\":\"https:\/\/www.citerp.com.tw\/citwordpress\/author\/cit001\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u65e5\u671f\u683c\u5f0f\u8f49\u63db JavaScript \u4eca\u5929\u3001\u6628\u5929\u3001\u672c\u5468\u3001\u4e0a\u5468\u3001\u672c\u6708\u3001\u4e0a\u6708\u3001\u4e0a\u5e74\u3001\u65e5\u671f\u6aa2\u67e5 - \u514d\u8cbb\u8cc7\u6e90\u5206\u4eab","description":"\u65e5\u671f\u683c\u5f0f\u8f49\u63db JavaScript \u4eca\u5929\u3001\u6628\u5929\u3001\u672c\u5468\u3001\u4e0a\u5468\u3001\u672c\u6708\u3001\u4e0a\u6708\u3001\u4e0a\u5e74\u3001\u65e5\u671f\u6aa2\u67e5","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.citerp.com.tw\/citwordpress\/javascript-getdatefun001\/","og_locale":"zh_TW","og_type":"article","og_title":"\u65e5\u671f\u683c\u5f0f\u8f49\u63db JavaScript \u4eca\u5929\u3001\u6628\u5929\u3001\u672c\u5468\u3001\u4e0a\u5468\u3001\u672c\u6708\u3001\u4e0a\u6708\u3001\u4e0a\u5e74\u3001\u65e5\u671f\u6aa2\u67e5 - \u514d\u8cbb\u8cc7\u6e90\u5206\u4eab","og_description":"\u65e5\u671f\u683c\u5f0f\u8f49\u63db JavaScript \u4eca\u5929\u3001\u6628\u5929\u3001\u672c\u5468\u3001\u4e0a\u5468\u3001\u672c\u6708\u3001\u4e0a\u6708\u3001\u4e0a\u5e74\u3001\u65e5\u671f\u6aa2\u67e5","og_url":"https:\/\/www.citerp.com.tw\/citwordpress\/javascript-getdatefun001\/","og_site_name":"\u514d\u8cbb\u8cc7\u6e90\u5206\u4eab","article_publisher":"https:\/\/www.facebook.com\/citerptw","article_published_time":"2022-10-07T11:51:18+00:00","article_modified_time":"2023-12-20T03:52:08+00:00","author":"\u5eb7\u6377Qoo","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005:":"\u5eb7\u6377Qoo","\u9810\u4f30\u95b1\u8b80\u6642\u9593":"7 \u5206\u9418"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.citerp.com.tw\/citwordpress\/javascript-getdatefun001\/#article","isPartOf":{"@id":"https:\/\/www.citerp.com.tw\/citwordpress\/javascript-getdatefun001\/"},"author":{"name":"\u5eb7\u6377Qoo","@id":"https:\/\/www.citerp.com.tw\/citwordpress\/#\/schema\/person\/28cfdf2cec7315f2efe90573114fed37"},"headline":"\u65e5\u671f\u683c\u5f0f\u8f49\u63db JavaScript \u4eca\u5929\u3001\u6628\u5929\u3001\u672c\u5468\u3001\u4e0a\u5468\u3001\u672c\u6708\u3001\u4e0a\u6708\u3001\u4e0a\u5e74\u3001\u65e5\u671f\u6aa2\u67e5","datePublished":"2022-10-07T11:51:18+00:00","dateModified":"2023-12-20T03:52:08+00:00","mainEntityOfPage":{"@id":"https:\/\/www.citerp.com.tw\/citwordpress\/javascript-getdatefun001\/"},"wordCount":63,"commentCount":0,"publisher":{"@id":"https:\/\/www.citerp.com.tw\/citwordpress\/#organization"},"keywords":["getdate","JavaScript"],"articleSection":["JavaScript","JavaScript_date"],"inLanguage":"zh-TW","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.citerp.com.tw\/citwordpress\/javascript-getdatefun001\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.citerp.com.tw\/citwordpress\/javascript-getdatefun001\/","url":"https:\/\/www.citerp.com.tw\/citwordpress\/javascript-getdatefun001\/","name":"\u65e5\u671f\u683c\u5f0f\u8f49\u63db JavaScript \u4eca\u5929\u3001\u6628\u5929\u3001\u672c\u5468\u3001\u4e0a\u5468\u3001\u672c\u6708\u3001\u4e0a\u6708\u3001\u4e0a\u5e74\u3001\u65e5\u671f\u6aa2\u67e5 - \u514d\u8cbb\u8cc7\u6e90\u5206\u4eab","isPartOf":{"@id":"https:\/\/www.citerp.com.tw\/citwordpress\/#website"},"datePublished":"2022-10-07T11:51:18+00:00","dateModified":"2023-12-20T03:52:08+00:00","description":"\u65e5\u671f\u683c\u5f0f\u8f49\u63db JavaScript \u4eca\u5929\u3001\u6628\u5929\u3001\u672c\u5468\u3001\u4e0a\u5468\u3001\u672c\u6708\u3001\u4e0a\u6708\u3001\u4e0a\u5e74\u3001\u65e5\u671f\u6aa2\u67e5","breadcrumb":{"@id":"https:\/\/www.citerp.com.tw\/citwordpress\/javascript-getdatefun001\/#breadcrumb"},"inLanguage":"zh-TW","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.citerp.com.tw\/citwordpress\/javascript-getdatefun001\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.citerp.com.tw\/citwordpress\/javascript-getdatefun001\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9801","item":"https:\/\/www.citerp.com.tw\/citwordpress\/"},{"@type":"ListItem","position":2,"name":"\u65e5\u671f\u683c\u5f0f\u8f49\u63db JavaScript \u4eca\u5929\u3001\u6628\u5929\u3001\u672c\u5468\u3001\u4e0a\u5468\u3001\u672c\u6708\u3001\u4e0a\u6708\u3001\u4e0a\u5e74\u3001\u65e5\u671f\u6aa2\u67e5"}]},{"@type":"WebSite","@id":"https:\/\/www.citerp.com.tw\/citwordpress\/#website","url":"https:\/\/www.citerp.com.tw\/citwordpress\/","name":"\u514d\u8cbb\u8cc7\u6e90\u5206\u4eab","description":"\u514d\u8cbb\u8cc7\u6e90\u5171\u4eab","publisher":{"@id":"https:\/\/www.citerp.com.tw\/citwordpress\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.citerp.com.tw\/citwordpress\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-TW"},{"@type":"Organization","@id":"https:\/\/www.citerp.com.tw\/citwordpress\/#organization","name":"\u514d\u8cbb\u8cc7\u6e90\u5206\u4eab","url":"https:\/\/www.citerp.com.tw\/citwordpress\/","logo":{"@type":"ImageObject","inLanguage":"zh-TW","@id":"https:\/\/www.citerp.com.tw\/citwordpress\/#\/schema\/logo\/image\/","url":"https:\/\/www.citerp.com.tw\/citwordpress\/wp-content\/uploads\/2022\/06\/find2.png","contentUrl":"https:\/\/www.citerp.com.tw\/citwordpress\/wp-content\/uploads\/2022\/06\/find2.png","width":128,"height":128,"caption":"\u514d\u8cbb\u8cc7\u6e90\u5206\u4eab"},"image":{"@id":"https:\/\/www.citerp.com.tw\/citwordpress\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/citerptw"]},{"@type":"Person","@id":"https:\/\/www.citerp.com.tw\/citwordpress\/#\/schema\/person\/28cfdf2cec7315f2efe90573114fed37","name":"\u5eb7\u6377Qoo","image":{"@type":"ImageObject","inLanguage":"zh-TW","@id":"https:\/\/www.citerp.com.tw\/citwordpress\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/87fa59ff417f35a6d53f05479d9dd918615095cadddb02e447511edc4f8b6302?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/87fa59ff417f35a6d53f05479d9dd918615095cadddb02e447511edc4f8b6302?s=96&d=mm&r=g","caption":"\u5eb7\u6377Qoo"},"url":"https:\/\/www.citerp.com.tw\/citwordpress\/author\/cit001\/"}]}},"_links":{"self":[{"href":"https:\/\/www.citerp.com.tw\/citwordpress\/wp-json\/wp\/v2\/posts\/3663","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.citerp.com.tw\/citwordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.citerp.com.tw\/citwordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.citerp.com.tw\/citwordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.citerp.com.tw\/citwordpress\/wp-json\/wp\/v2\/comments?post=3663"}],"version-history":[{"count":0,"href":"https:\/\/www.citerp.com.tw\/citwordpress\/wp-json\/wp\/v2\/posts\/3663\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.citerp.com.tw\/citwordpress\/wp-json\/wp\/v2\/media?parent=3663"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.citerp.com.tw\/citwordpress\/wp-json\/wp\/v2\/categories?post=3663"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.citerp.com.tw\/citwordpress\/wp-json\/wp\/v2\/tags?post=3663"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}