{"id":975,"date":"2024-10-29T15:21:41","date_gmt":"2024-10-29T07:21:41","guid":{"rendered":"https:\/\/www.gracevn.com\/?page_id=975"},"modified":"2024-10-31T16:45:47","modified_gmt":"2024-10-31T08:45:47","slug":"advanced_search","status":"publish","type":"page","link":"https:\/\/www.gracevn.com\/en\/advanced_search","title":{"rendered":"\u9ad8\u7ea7\u641c\u7d22"},"content":{"rendered":"<div class=\"vc_row wpb_row vc_row-fluid\"><div class=\"wpb_column vc_column_container vc_col-sm-12\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\">\n\t<div class=\"wpb_text_column wpb_content_element  vc_custom_1730263290479\" >\n\t\t<div class=\"wpb_wrapper\">\n\t\t\t<h2 style=\"text-align: center;\">Product category search<\/h2>\n<p style=\"text-align: center;\">Select the corresponding product category linkage and enter the product category.<\/p>\n\n\t\t<\/div>\n\t<\/div>\n\n\t<div class=\"wpb_raw_code wpb_content_element wpb_raw_html\" >\n\t\t<div class=\"wpb_wrapper\">\n\t\t\t    <div class=\"container\" style=\"text-align: center;\">\n<div class=\"searchsel\">\n        <select id=\"firstDropdown\" onchange=\"updateSecondDropdown()\">\n            <option value=\"\">\u8bf7\u9009\u62e9<\/option>\n            <option value=\"category1\">NTC Thermistor<\/option>\n            <option value=\"category2\">Chip Varistors<\/option>\n\t\t\t<option value=\"category3\">ESD Suppressors<\/option>\n\t\t\t<option value=\"category4\">Chip Ferrite Beads<\/option>\n\t\t\t<option value=\"category5\">Inductors<\/option>\n        <\/select>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2024\/10\/2024103004314155.png\" alt=\"\">\n        <select id=\"secondDropdown\" onchange=\"updateLink()\">\n            <option value=\"\"><\/option>\n        <\/select>\n<\/div>\n<div class=\"searchbtn\">\n        <button onclick=\"resetDropdowns()\" class=\"type_reset\">Reset<\/button>\n        <button id=\"openLinkButton\" onclick=\"openLinkInNewTab()\" class=\"type_search\">Search<\/button>\n<\/div>\n    <\/div>\n\n    <script>\n        function updateSecondDropdown() {\n            const firstDropdown = document.getElementById('firstDropdown');\n            const secondDropdown = document.getElementById('secondDropdown');\n            secondDropdown.innerHTML = '<option value=\"\">\u8bf7\u9009\u62e9<\/option>';\n\n            if (firstDropdown.value === 'category1') {\n                addOption(secondDropdown, 'subcategory1-1', 'NTC\u00b7\u6d4b\u6e29\u7cfb\u5217');\n                addOption(secondDropdown, 'subcategory1-2', 'PTC\u00b7\u8fc7\u6d41\u4fdd\u62a4\u7cfb\u5217');\n\t\t\t\taddOption(secondDropdown, 'subcategory1-3', 'PTC\u00b7\u8fc7\u70ed\u4fdd\u62a4\u7cfb\u5217');\n            } else if (firstDropdown.value === 'category2') {\n                addOption(secondDropdown, 'subcategory2-1', '\u9632\u9759\u7535\u4fdd\u62a4');\n                addOption(secondDropdown, 'subcategory2-2', '\u8fc7\u7535\u538b\u4fdd\u62a4');\n            } else if (firstDropdown.value === 'category3') {\n                addOption(secondDropdown, 'subcategory3-1', 'ESD\u9759\u7535\u6291\u5236\u5668');\n            }else if (firstDropdown.value === 'category4') {\n                addOption(secondDropdown, 'subcategory4-1', '\u4e00\u822c\u4fe1\u53f7\u7ebf\u7528');\n\t\t\t\taddOption(secondDropdown, 'subcategory4-2', '\u97f3\u9891\u7ebf\u7528');\n\t\t\t\taddOption(secondDropdown, 'subcategory4-3', '\u7535\u6e90\u7ebf\u7528');\n            }\n\t\t\telse if (firstDropdown.value === 'category5') {\n\t\t\t    addOption(secondDropdown, 'subcategory5-1', '\u53e0\u5c42\u9ad8\u9891\u7535\u611f');\n\t\t\t\taddOption(secondDropdown, 'subcategory5-2', '\u53e0\u5c42\u529f\u7387\u7535\u611f');\n\t\t\t\taddOption(secondDropdown, 'subcategory5-3', '\u7ed5\u7ebf\u4e00\u4f53\u6210\u578b\u529f\u7387\u7535\u611f');\n\t\t\t\taddOption(secondDropdown, 'subcategory5-4', '\u7ed5\u7ebf\u78c1\u5c4f\u853d\u529f\u7387\u7535\u611f');\n\t\t\t\taddOption(secondDropdown, 'subcategory5-5', '\u7ed5\u7ebf\u78c1\u5f00\u653e\u529f\u7387\u7535\u611f');\n\t\t\t}\n        }\n\n        function addOption(select, value, text) {\n            const option = document.createElement('option');\n            option.value = value;\n            option.text = text;\n            select.add(option);\n        }\n\n        function updateLink() {\n            const secondDropdown = document.getElementById('secondDropdown');\n            const linkButton = document.getElementById('openLinkButton');\n\n            let link = '';\n            switch (secondDropdown.value) {\n                case 'subcategory1-1':\n                    link = 'https:\/\/www.gracevn.com\/products';\n                    break;\n                case 'subcategory1-2':\n                    link = 'https:\/\/www.gracevn.com\/ptc01';\n                    break;\n                case 'subcategory1-3':\n                    link = 'https:\/\/www.gracevn.com\/ptc02';\n                    break;\n                case 'subcategory2-1':\n                    link = 'https:\/\/www.gracevn.com\/resistive01';\n                    break;\n                case 'subcategory2-2':\n                    link = 'https:\/\/www.gracevn.com\/resistive02';\n                    break;\n                case 'subcategory3-1':\n                    link = 'https:\/\/www.gracevn.com\/esd';\n                    break;\n                default:\n                    link = '';\n            }\n\n            \/\/ \u5b58\u50a8\u94fe\u63a5\u5230\u6309\u94ae\u7684\u81ea\u5b9a\u4e49\u5c5e\u6027\u4e2d\n            linkButton.setAttribute('data-link', link);\n        }\n\n        function resetDropdowns() {\n            document.getElementById('firstDropdown').selectedIndex = 0;\n            document.getElementById('secondDropdown').innerHTML = '';\n            document.getElementById('openLinkButton').removeAttribute('data-link');\n        }\n\n        function openLinkInNewTab() {\n            const linkButton = document.getElementById('openLinkButton');\n            const link = linkButton.getAttribute('data-link');\n            if (link) {\n                window.open(link, '_blank');\n            } else {\n                alert('Please choose a category');\n            }\n        }\n    <\/script>\n\t\t<\/div>\n\t<\/div>\n<\/div><\/div><\/div><\/div><div class=\"vc_row wpb_row vc_row-fluid vc_custom_1730264595569\"><div class=\"wpb_column vc_column_container vc_col-sm-12\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\">\n\t<div class=\"wpb_text_column wpb_content_element  vc_custom_1730353113688\" >\n\t\t<div class=\"wpb_wrapper\">\n\t\t\t<h2 style=\"text-align: center;\">Product Model Search<\/h2>\n<p style=\"text-align: center;\">Search by product model (e.g. KRFB, KESD, KPTC0603P221M101KAK000T)<\/p>\n\n\t\t<\/div>\n\t<\/div>\n\n\t<div class=\"wpb_raw_code wpb_content_element wpb_raw_html search-class\" >\n\t\t<div class=\"wpb_wrapper\">\n\t\t\t<div class=\"search-class\">\n<span class=\"wdt-search-icon\"><\/span>\n<input type=\"search\" id=\"search-box\" placeholder=\"\u8bf7\u8f93\u5165\u53ef\u9510\u4ea7\u54c1\u578b\u53f7\uff0c\u5185\u5bb9\u81f3\u5c11\u5305\u542b1\u4f4d\u5b57\u6bcd(\u4f8b\u5982:KRFB,KESD,KPTC0603P221M101KAK000T)\">\n<button id=\"search-button\">Search<\/button>\n<\/div>\n<script type=\"text\/javascript\">\njQuery(document).ready(function($) {\n    \/\/ \u76d1\u542c\u641c\u7d22\u6309\u94ae\u7684\u70b9\u51fb\u4e8b\u4ef6\n    $('#search-button').on('click', function() {\n        \/\/ \u83b7\u53d6\u641c\u7d22\u6846\u7684\u5185\u5bb9\n        var searchQuery = $('#search-box').val().trim();\n\n        \/\/ \u6839\u636e\u8f93\u5165\u5185\u5bb9\u7684\u5f00\u5934\u5224\u65ad\u8981\u8df3\u8f6c\u7684URL\n        if (searchQuery.startsWith('KNTC')) {\n            \/\/ \u6784\u5efa\u4ea7\u54c1\u641c\u7d22\u9875\u9762\u7684URL\n            var productSearchUrl = 'https:\/\/www.gracevn.com\/products?wdt_search=' + encodeURIComponent(searchQuery.substring(4));\n            \/\/ \u8df3\u8f6c\u5230\u4ea7\u54c1\u641c\u7d22\u9875\u9762\n            window.location.href = productSearchUrl;\n        } else if (searchQuery.startsWith('KPTC')) {\n            \/\/ \u6784\u5efa\u535a\u5ba2\u641c\u7d22\u9875\u9762\u7684URL\n            var blogSearchUrl = 'https:\/\/www.gracevn.com\/ptc01?wdt_search=' + encodeURIComponent(searchQuery.substring(4));\n            \/\/ \u8df3\u8f6c\u5230\u535a\u5ba2\u641c\u7d22\u9875\u9762\n            window.location.href = blogSearchUrl;\n        } else if (searchQuery.startsWith('KRMV')) {\n            \/\/ \u6784\u5efa\u7ad9\u70b9\u641c\u7d22\u9875\u9762\u7684URL\uff08\u8fd9\u91cc\u53ea\u662f\u793a\u4f8b\uff0c\u5b9e\u9645\u53ef\u80fd\u9700\u8981\u6839\u636e\u9700\u6c42\u8c03\u6574\uff09\n            var siteSearchUrl = 'https:\/\/www.gracevn.com\/resistive01?wdt_search=' + encodeURIComponent(searchQuery.substring(4));\n            \/\/ \u8df3\u8f6c\u5230\u7ad9\u70b9\u641c\u7d22\u9875\u9762\n            window.location.href = siteSearchUrl;\n        } else if (searchQuery.startsWith('KESD')) {\n            \/\/ \u6784\u5efa\u7ad9\u70b9\u641c\u7d22\u9875\u9762\u7684URL\uff08\u8fd9\u91cc\u53ea\u662f\u793a\u4f8b\uff0c\u5b9e\u9645\u53ef\u80fd\u9700\u8981\u6839\u636e\u9700\u6c42\u8c03\u6574\uff09\n            var siteSearchUrl = 'https:\/\/www.gracevn.com\/esd?wdt_search=' + encodeURIComponent(searchQuery.substring(4));\n            \/\/ \u8df3\u8f6c\u5230\u7ad9\u70b9\u641c\u7d22\u9875\u9762\n            window.location.href = siteSearchUrl;\n        } else if (searchQuery.startsWith('KRFB')) {\n            \/\/ \u6784\u5efa\u7ad9\u70b9\u641c\u7d22\u9875\u9762\u7684URL\uff08\u8fd9\u91cc\u53ea\u662f\u793a\u4f8b\uff0c\u5b9e\u9645\u53ef\u80fd\u9700\u8981\u6839\u636e\u9700\u6c42\u8c03\u6574\uff09\n            var siteSearchUrl = 'https:\/\/www.gracevn.com\/convec01?wdt_search=' + encodeURIComponent(searchQuery.substring(4));\n            \/\/ \u8df3\u8f6c\u5230\u7ad9\u70b9\u641c\u7d22\u9875\u9762\n            window.location.href = siteSearchUrl;\n        } else if (searchQuery.startsWith('KIMC')) {\n            \/\/ \u6784\u5efa\u7ad9\u70b9\u641c\u7d22\u9875\u9762\u7684URL\uff08\u8fd9\u91cc\u53ea\u662f\u793a\u4f8b\uff0c\u5b9e\u9645\u53ef\u80fd\u9700\u8981\u6839\u636e\u9700\u6c42\u8c03\u6574\uff09\n            var siteSearchUrl = 'https:\/\/www.gracevn.com\/ele01?wdt_search=' + encodeURIComponent(searchQuery.substring(4));\n            \/\/ \u8df3\u8f6c\u5230\u7ad9\u70b9\u641c\u7d22\u9875\u9762\n            window.location.href = siteSearchUrl;\n        } else if (searchQuery.startsWith('KIMF')) {\n            \/\/ \u6784\u5efa\u7ad9\u70b9\u641c\u7d22\u9875\u9762\u7684URL\uff08\u8fd9\u91cc\u53ea\u662f\u793a\u4f8b\uff0c\u5b9e\u9645\u53ef\u80fd\u9700\u8981\u6839\u636e\u9700\u6c42\u8c03\u6574\uff09\n            var siteSearchUrl = 'https:\/\/www.gracevn.com\/ele02?wdt_search=' + encodeURIComponent(searchQuery.substring(4));\n            \/\/ \u8df3\u8f6c\u5230\u7ad9\u70b9\u641c\u7d22\u9875\u9762\n            window.location.href = siteSearchUrl;\n        } else if (searchQuery.startsWith('KIWM')) {\n            \/\/ \u6784\u5efa\u7ad9\u70b9\u641c\u7d22\u9875\u9762\u7684URL\uff08\u8fd9\u91cc\u53ea\u662f\u793a\u4f8b\uff0c\u5b9e\u9645\u53ef\u80fd\u9700\u8981\u6839\u636e\u9700\u6c42\u8c03\u6574\uff09\n            var siteSearchUrl = 'https:\/\/www.gracevn.com\/ele03?wdt_search=' + encodeURIComponent(searchQuery.substring(4));\n            \/\/ \u8df3\u8f6c\u5230\u7ad9\u70b9\u641c\u7d22\u9875\u9762\n            window.location.href = siteSearchUrl;\n        } else if (searchQuery.startsWith('KIWR')) {\n            \/\/ \u6784\u5efa\u7ad9\u70b9\u641c\u7d22\u9875\u9762\u7684URL\uff08\u8fd9\u91cc\u53ea\u662f\u793a\u4f8b\uff0c\u5b9e\u9645\u53ef\u80fd\u9700\u8981\u6839\u636e\u9700\u6c42\u8c03\u6574\uff09\n            var siteSearchUrl = 'https:\/\/www.gracevn.com\/ele04?wdt_search=' + encodeURIComponent(searchQuery.substring(4));\n            \/\/ \u8df3\u8f6c\u5230\u7ad9\u70b9\u641c\u7d22\u9875\u9762\n            window.location.href = siteSearchUrl;\n        } else if (searchQuery.startsWith('KIWN')) {\n            \/\/ \u6784\u5efa\u7ad9\u70b9\u641c\u7d22\u9875\u9762\u7684URL\uff08\u8fd9\u91cc\u53ea\u662f\u793a\u4f8b\uff0c\u5b9e\u9645\u53ef\u80fd\u9700\u8981\u6839\u636e\u9700\u6c42\u8c03\u6574\uff09\n            var siteSearchUrl = 'https:\/\/www.gracevn.com\/ele05?wdt_search=' + encodeURIComponent(searchQuery.substring(4));\n            \/\/ \u8df3\u8f6c\u5230\u7ad9\u70b9\u641c\u7d22\u9875\u9762\n            window.location.href = siteSearchUrl;\n        }\n\t\telse {\n            \/\/ \u5176\u4ed6\u60c5\u51b5\uff0c\u8fd9\u91cc\u53ef\u4ee5\u9009\u62e9\u4e0d\u8df3\u8f6c\uff0c\u6216\u8005\u8df3\u8f6c\u5230\u9ed8\u8ba4\u641c\u7d22\u9875\u9762\n            \/\/ \u5982\u679c\u4e0d\u6dfb\u52a0\u8df3\u8f6c\u903b\u8f91\uff0c\u5219\u7528\u6237\u8f93\u5165\u5176\u4ed6\u5185\u5bb9\u65f6\u4e0d\u4f1a\u8df3\u8f6c\n            \/\/ \u4f8b\u5982\uff0c\u53ef\u4ee5\u8df3\u8f6c\u5230\u901a\u7528\u641c\u7d22\u9875\u9762\uff1a\n            \/\/var defaultSearchUrl = 'https:\/\/www.gracevn.com\/search-hint?wdt_search=' + encodeURIComponent(searchQuery);\n            \/\/window.location.href = defaultSearchUrl;\n        }\n    });\n});\n        \/\/ \u83b7\u53d6\u8f93\u5165\u6846\u5143\u7d20\n        const inputElement = document.getElementById('search-box');\n\n        \/\/ \u6dfb\u52a0 input \u4e8b\u4ef6\u76d1\u542c\u5668\n        inputElement.addEventListener('input', function() {\n            \/\/ \u5c06\u8f93\u5165\u6846\u7684\u503c\u8f6c\u6362\u4e3a\u5927\u5199\n            inputElement.value = inputElement.value.toUpperCase();\n        });\n<\/script>\n\t\t<\/div>\n\t<\/div>\n\n\t<div class=\"wpb_text_column wpb_content_element\" >\n\t\t<div class=\"wpb_wrapper\">\n\t\t\t<p style=\"text-align: center;\">Kind reminder: For more detailed product parameters, please enter the product center category and search for parameters at the top of the product list.<\/p>\n\n\t\t<\/div>\n\t<\/div>\n<\/div><\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>\u4ea7\u54c1\u79cd\u7c7b\u641c\u7d22 \u9009\u62e9\u76f8\u5e94\u4ea7\u54c1\u5206\u7c7b\u8054\u52a8\uff0c\u8fdb\u5165\u4ea7\u54c1\u7ec6\u5206\u3002 \u8bf7\u9009\u62e9 \u70ed\u654f\u7535\u963b \u538b\u654f\u7535\u963b\u00b7\u6d6a\u6d8c\u9632\u62a4\u7cfb\u5217 ESD\u9759\u7535\u6291\u5236\u5668 \u78c1\u73e0 \u7535\u611f \u91cd\u7f6e \u641c\u7d22 \u4ea7\u54c1&hellip;<\/p>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_links_to":"","_links_to_target":""},"class_list":["post-975","page","type-page","status-publish","hentry","description-off"],"_links":{"self":[{"href":"https:\/\/www.gracevn.com\/en\/wp-json\/wp\/v2\/pages\/975"}],"collection":[{"href":"https:\/\/www.gracevn.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.gracevn.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.gracevn.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gracevn.com\/en\/wp-json\/wp\/v2\/comments?post=975"}],"version-history":[{"count":0,"href":"https:\/\/www.gracevn.com\/en\/wp-json\/wp\/v2\/pages\/975\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.gracevn.com\/en\/wp-json\/wp\/v2\/media?parent=975"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}