{"id":186,"date":"2024-06-26T14:50:12","date_gmt":"2024-06-26T06:50:12","guid":{"rendered":"https:\/\/hyservice.fun\/?page_id=186"},"modified":"2024-06-26T14:57:07","modified_gmt":"2024-06-26T06:57:07","slug":"186-2","status":"publish","type":"page","link":"https:\/\/hyservice.fun\/index.php\/186-2\/","title":{"rendered":"\u8d28\u8c31PPM\u8ba1\u7b97\u5668"},"content":{"rendered":"\n<!DOCTYPE html>\n<html>\n<head>\n    <title>\u8d28\u8c31PPM\u8ba1\u7b97\u5668<\/title>\n<\/head>\n<body>\n    <h2>\u8d28\u8c31PPM\u8ba1\u7b97\u5668<\/h2>\n    <form id=\"ppmCalculator\">\n        <label for=\"measuredMass\">\u5b9e\u9645\u6d4b\u91cf\u8d28\u91cf (Da):<\/label><br>\n        <input type=\"number\" id=\"measuredMass\" name=\"measuredMass\" step=\"any\"><br><br>\n        <label for=\"theoreticalMass\">\u7406\u8bba\u8d28\u91cf (Da):<\/label><br>\n        <input type=\"number\" id=\"theoreticalMass\" name=\"theoreticalMass\" step=\"any\"><br><br>\n        <input type=\"button\" value=\"\u8ba1\u7b97\" onclick=\"calculatePPM()\">\n    <\/form>\n    <p id=\"result\"><\/p>\n\n    <script>\n        function calculatePPM() {\n            var measuredMass = parseFloat(document.getElementById('measuredMass').value);\n            var theoreticalMass = parseFloat(document.getElementById('theoreticalMass').value);\n\n            if (isNaN(measuredMass) || isNaN(theoreticalMass)) {\n                document.getElementById('result').innerText = '\u8bf7\u8f93\u5165\u6709\u6548\u7684\u5b9e\u9645\u6d4b\u91cf\u8d28\u91cf\u548c\u7406\u8bba\u8d28\u91cf';\n                return;\n            }\n\n            var ppm = ((measuredMass - theoreticalMass) \/ theoreticalMass) * 1e6;\n            document.getElementById('result').innerText = '\u8ba1\u7b97\u7ed3\u679c: ' + ppm.toFixed(2) + ' ppm';\n        }\n    <\/script>\n<\/body>\n<\/html>\n\n","protected":false},"excerpt":{"rendered":"<p>\u8d28\u8c31PPM\u8ba1\u7b97\u5668 \u8d28\u8c31PPM\u8ba1\u7b97\u5668 \u5b9e\u9645\u6d4b\u91cf\u8d28\u91cf (Da): \u7406\u8bba\u8d28\u91cf (Da):<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-186","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/hyservice.fun\/index.php\/wp-json\/wp\/v2\/pages\/186","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hyservice.fun\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/hyservice.fun\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/hyservice.fun\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hyservice.fun\/index.php\/wp-json\/wp\/v2\/comments?post=186"}],"version-history":[{"count":2,"href":"https:\/\/hyservice.fun\/index.php\/wp-json\/wp\/v2\/pages\/186\/revisions"}],"predecessor-version":[{"id":188,"href":"https:\/\/hyservice.fun\/index.php\/wp-json\/wp\/v2\/pages\/186\/revisions\/188"}],"wp:attachment":[{"href":"https:\/\/hyservice.fun\/index.php\/wp-json\/wp\/v2\/media?parent=186"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}