{"status":200,"data":[{"cid":"168","title":"2\u5e74\u6ca1\u53d1\u6587\u7ae0\u4e86\uff0c\u5192\u4e2a\u6ce1","created":"1775669400","type":"post","slug":"Bubble","text":"<!--markdown-->\u5237\u65b0\u4e0b\u5b58\u5728\u611f ::aru:diving:: \r\n\r\n\u6709\u65e0\u597d\u770b\u7684\u535a\u5ba2\u4e3b\u9898\u63a8\u8350\uff1f","authorId":"1","password":"","date":{"timeStamp":1775669400,"year":"2026","month":"04","day":"09"},"author":[{"uid":"1","name":"szj1006","mail":"i@sangsir.com","url":"https:\/\/sangsir.com","screenName":"SangSir"}],"tag":[],"thumb":[{"str_value":""},{"str_value":"auto"},{"str_value":""},{"str_value":"default"},{"str_value":"no"},{"str_value":"auto"},{"str_value":"standard"},{"str_value":""},{"str_value":"default"},{"str_value":""},{"str_value":""},{"str_value":"default"}]},{"cid":"139","title":"Mac homebrew \u5347\u7ea7\u5bfc\u81f4\u7684 php \u4e0d\u80fd\u6b63\u5e38\u542f\u52a8 dyld[40013]: Library not loaded: \/opt\/homebrew\/opt\/icu4c\/lib\/libicuio","created":"1694426820","type":"post","slug":"homebrew-icu4c-php","text":"<!--markdown-->Mac homebrew \u5b89\u88c5 php 7.4 \u7248\u672c\u65f6\u51fa\u73b0\u62a5\u9519\uff0c\u539f\u56e0\u662fphp\u65b0\u7248\u672c\u90fd\u5728\u7528 icu4c 73 \u7248\u672c\uff0c\u6ca1\u6709\u76f8\u5173\u6587\u4ef6\u6240\u4ee5\u5b89\u88c5\u5931\u8d25\uff0c\u8fd9\u91cc\u627e\u4e86\u4e2a\u89e3\u51b3\u65b9\u6848\uff0c\u53ef\u4ee5\u5b89\u88c5\u66f4\u65b0\u7248\u672c\uff0c\u5e76\u4e0e\u8001\u7248\u672c\u5171\u5b58\u3002\r\n\r\n> [\u77e5\u4e4e-brew \u600e\u4e48\u5b89\u88c5\u7279\u5b9a\u7248\u672c\u7684\u8f6f\u4ef6\uff1f][1]\r\n\r\n\u4ee5\u4e0b\u4e3a\u6587\u7ae0\u5907\u4efd\uff1a\r\n\r\n\u81ea\u5b9a\u4e49brew \u5b89\u88c5\u6e90\u6765\u5b89\u88c5\u4e0d\u5728brew \u7248\u672c\u5e93\u4e2d\u7684\u8f6f\u4ef6\u6216\u8005\u7248\u672c\uff0c\u4ee5\u4e0b\u4ee5\u81ea\u5b9a\u4e49\u5b89\u88c5icu4c 73\u7248\u672c\u4e3a\u4f8b\u3002\r\n\r\n\u81ea\u5b9a\u4e49\u7684 icu4c@73.rb \u5b89\u88c5\u6e90\u793a\u4f8b\uff0c \u6ce8\u610f\u8fd9\u91cc\u53ef\u80fd\u4f1a\u5b89\u88c5\u591a\u4e2a\u7248\u672c\u7684\u8f6f\u4ef6\uff0c\u6240\u4ee5.rb\u6587\u4ef6\u7684\u547d\u540d\u4e3a\u8981\u5b89\u88c5\u7684\u8f6f\u4ef6\u540d+\u5927\u7248\u672c\u540d\uff0c\u7c7b\u540d\u4e3a Icu4cAT73\r\n\r\nicu4c@73.rb \u6587\u4ef6\u793a\u4f8b\r\n```\r\n# \u81ea\u5b9a\u4e49brew Formula for Icu4c \u81ea\u5b9a\u4e49\u7248\u672c\r\n# \u4f7f\u7528\u65b9\u6cd5:\r\n# 1. \u76f4\u63a5\u6307\u5b9arb\u6587\u4ef6\u5b89\u88c5\uff1a brew install icu4c@73.rb\r\n# 2. \u5c06icu4c@73.rb\u6587\u4ef6\u653e\u5230brew\u7684\u9ed8\u8ba4Formula\u8def\u5f84 \u7136\u540e\u6267\u884c brew install icu4c@73\r\n# \u8def\u5f84\uff1a\/usr\/local\/Homebrew\/Library\/Taps\/homebrew\/homebrew-core\/Formula\/icu4c@73.rb\r\n# \r\n# \u6ce8\u610f\u4e0b\u9762\u7684class\u540d\u79f0\uff0cIcu4c \u9a7c\u5cf0\u547d\u540d\u7684\u8981\u5b89\u88c5\u7684\u8f6f\u4ef6\u540d\u79f0 Icu4c\uff0c\r\n# \u540e\u9762\u7684 AT \u5373 @ \uff08@\u8f6c\u6362\u4e3aslug\u547d\u540d\u5373 AT\uff09\u52a0\u5927\u7248\u672c\u53f7 73 \u6ce8\u610f\u4e0d\u80fd\u6709\u7279\u6b8a\u7b26\u53f7\r\nclass Icu4cAT73 < Formula\r\n  # \u8f6f\u4ef6\u63cf\u8ff0\u4fe1\u606f\r\n  desc \"C\/C++ and Java libraries for Unicode and globalization\"\r\n  # \u8f6f\u4ef6\u63d0\u4f9b\u5546URL\r\n  homepage \"https:\/\/site.icu-project.org\/home\"\r\n  # \u8f6f\u4ef6\u5305\u7684\u4e0b\u8f7d\u5730\u5740\r\n  url \"https:\/\/github.com\/unicode-org\/icu\/releases\/download\/release-73-2\/icu4c-73_2-src.tgz\"\r\n  # \u955c\u50cf\u5730\u5740\r\n  mirror \"http:\/\/192.168.2.88\/icu4c-73_2-src.tgz\"\r\n  # \u7248\u672c\u53f7\r\n  version \"73.2\"\r\n  # \u8f6f\u4ef6\u955c\u50cf\u5305\u7684 sha256\u7b7e\u540d\u4fe1\u606f\uff0c\u4e0b\u8f7d\u5230\u672c\u5730\u53ef\u4f7f\u7528 openssl sha256 icu4c-73_2-src.tgz \u547d\u4ee4\u6765\u8ba1\u7b97\r\n  sha256 \"818a80712ed3caacd9b652305e01afc7fa167e6f2e94996da44b90c2ab604ce1\"\r\n  # \u7248\u6743\r\n  license \"GPL\"\r\n\r\n  # \u65b0\u7248\u672c\u68c0\u6d4b\r\n  livecheck do\r\n    # \u8981\u68c0\u6d4b\u7684URL\u5730\u5740\r\n    url \"https:\/\/github.com\/unicode-org\/icu\/releases\"\r\n    # \u6b63\u5219\u63d0\u53d6\u7248\u672c\u4fe1\u606f\r\n    regex(\/href=.*?release-([0-9._-]+)\"\/i)\r\n  end\r\n\r\n  keg_only :provided_by_macos, \"macOS provides libicucore.dylib (but nothing else)\"\r\n\r\n  # \u5b89\u88c5\u65b9\u6cd5\r\n  def install\r\n    # \u5b9a\u4e49.\/configure \u914d\u7f6e\u53c2\u6570\r\n    args = %W[\r\n      --prefix=#{prefix}\r\n      --disable-samples\r\n      --disable-tests\r\n      --enable-static\r\n      --with-library-bits=64\r\n    ]\r\n    # \u6ce8\u610f\u9ed8\u8ba4\u8def\u5f84\u662f\u538b\u7f29\u5305\u89e3\u538b\u540e\u7684\u6839\u76ee\u5f55\uff0c\u56e0\u4e3a \u8fdb\u5165\u5230source\u76ee\u5f55\r\n    cd \"source\" do\r\n      system \".\/configure\", *args\r\n      system \"make\"\r\n      system \"make\", \"install\"\r\n    end\r\n  end\r\n\r\n  # \u6d4b\u8bd5\u65b9\u6cd5\u5b9a\u4e49\uff0c\u8fd9\u91cc\u53ef\u4ee5\u5b9a\u4e49\u591a\u4e2a\u6d4b\u8bd5\u9879\u76ee\r\n  test do\r\n    if File.exist? \"\/usr\/share\/dict\/words\"\r\n      system \"#{bin}\/gendict\", \"--uchars\", \"\/usr\/share\/dict\/words\", \"dict\"\r\n    else\r\n      (testpath\/\"hello\").write \"hello\\nworld\\n\"\r\n      system \"#{bin}\/gendict\", \"--uchars\", \"hello\", \"dict\"\r\n    end\r\n  end\r\nend\r\n```\r\n```\r\n# \u5b89\u88c5\u81ea\u5b9a\u4e49\u7684formula\r\nbrew install  icu4c@73\r\n\r\n# \u68c0\u67e5\u5b89\u88c5\u4fe1\u606f \r\nbrew info icu4c@73\r\n```\r\n\u5b89\u88c5\u540e\u9ed8\u8ba4\u4f1a\u5c06\u8f6f\u4ef6\u7684\u5b89\u88c5\u76ee\u5f55 \/usr\/local\/Cellar\/icu4c@73\/73.2 \u94fe\u63a5\u5230 \/usr\/local\/opt\/icu4c@73\r\n\r\n\u5728\u4f7f\u7528\u7684\u65f6\u5019\u76f4\u63a5\u4f7f\u7528 \/usr\/local\/opt\/icu4c@73 \uff0c\u8fd9\u6837\u540e\u9762\u66f4\u65b0\u76f8\u540c\u7684\u5927\u7248\u672cbrew\u4f1a\u81ea\u52a8\u66f4\u65b0\u76f8\u5173\u7684\u8f6f\u94fe\u63a5\r\n\r\n\u521b\u5efa\u8f6f\u8fde\u63a5\uff0c\u89e3\u51b3\u5176\u4ed6\u8f6f\u4ef6\u627e\u4e0d\u5230\u5e93\u7684\u95ee\u9898\r\n\r\n```\r\n# \u521b\u5efa\u8f6f\u94fe\u63a5 \u89e3\u51b3php5.6\u4e0d\u80fd\u8fd0\u884c\u95ee\u9898\r\nln -sf \/usr\/local\/opt\/icu4c@73\/lib\/libicui18n.73.2.dylib \/usr\/local\/lib\/libicui18n.73.dylib\r\nln -sf \/usr\/local\/opt\/icu4c@73\/lib\/libicuuc.73.2.dylib \/usr\/local\/lib\/libicuuc.73.dylib\r\nln -sf \/usr\/local\/opt\/icu4c@73\/lib\/libicudata.73.2.dylib \/usr\/local\/lib\/libicudata.73.dylib\r\nln -sf \/usr\/local\/opt\/icu4c@73\/lib\/libicuio.73.2.dylib \/usr\/local\/lib\/libicuio.73.dylib\r\n```\r\n\u5982\u679c\u4e0d\u9700\u8981\u4e86\uff0c\u6267\u884c brew uninstall icu4c@73\r\n\r\n\u6216\u8005 \u76f4\u63a5\u5220\u9664\u76f8\u5173\u6587\u4ef6\u5373\u53ef \u76ee\u5f55 \/usr\/local\/Cellar\/icu4c@73\/73.2 \u8f6f\u8fde\u63a5 \/usr\/local\/opt\/icu4c@73\r\n\r\n```\r\nrm -rf \/usr\/local\/Cellar\/icu4c@73\/73.2\r\nrm -rf  \/usr\/local\/opt\/icu4c@73\r\n\r\n#\u5220\u9664\u76f8\u5173\u8f6f\u94fe\u63a5\r\nrm -f \/usr\/local\/lib\/libicui18n.73.dylib\r\nrm -f \/usr\/local\/lib\/libicuuc.73.dylib\r\nrm -f \/usr\/local\/lib\/libicudata.73.dylib\r\nrm -f \/usr\/local\/lib\/libicuio.73.dylib\r\n```\r\n\r\n\r\n\r\n  [1]: https:\/\/www.zhihu.com\/question\/576001663\/answer\/3203609972","authorId":"1","password":"","date":{"timeStamp":1694426820,"year":"2023","month":"09","day":"11"},"author":[{"uid":"1","name":"szj1006","mail":"i@sangsir.com","url":"https:\/\/sangsir.com","screenName":"SangSir"}],"tag":[],"thumb":[{"str_value":"https:\/\/sangsir.com\/usr\/themes\/pinghsu\/images\/thumbs\/6.jpg"}]},{"cid":"127","title":"Uniapp h5\u90e8\u7f72\u5230\u670d\u52a1\u5668\u5237\u65b0\u9875\u9762\u51fa\u73b0404","created":"1689705780","type":"post","slug":"uniapp-h5-404","text":"<!--markdown-->\u89e3\u51b3\u65b9\u6848\u4e00\r\n-----\r\n\r\n\u5c06uniapp\u7684`manifest.json`\u4e2dh5\u914d\u7f6e\u7684\u8def\u7531\u6a21\u5f0f\u8bbe\u4e3a`hash`\u6a21\u5f0f\r\n\r\n![1.png][1]\r\n\r\n - \u4f18\u70b9\uff1a\u5f53\u524d\u7aef\u6ca1\u529e\u6cd5\u63a5\u89e6\u5230\u670d\u52a1\u5668\u7684\u65f6\u5019\uff0c\u7b80\u5355\u4fee\u6539\u4e0b\u914d\u7f6e\u5c31\u80fd\u4fee\u590d\r\n - \u7f3a\u70b9\uff1a\u6362\u6210hash\u540eurl\u4e2d\u5e26#\u53f7\uff0c\u4e0d\u7f8e\u89c2\uff0c\u800c\u4e14\u4f1a\u5f71\u54cd\u4f20\u53c2\r\n\r\n\u4e0d\u80fd\u63a5\u53d7\u8fd9\u4e2a\u7f3a\u70b9\u53ef\u4ee5\u53c2\u8003\u89e3\u51b3\u65b9\u6848\u4e8c\u3002\r\n\r\n\u89e3\u51b3\u65b9\u6848\u4e8c\r\n-----\r\n\r\n\u8def\u7531\u6a21\u5f0f\u8bbe\u7f6e\u4e3ahistory\u7684\u540c\u65f6\u7b80\u5355\u914d\u7f6e\u4e0b\u670d\u52a1\u5668\u5373\u53ef\r\n\r\nApache\r\n------\r\n\r\n```\r\n<IfModule mod_rewrite.c>\r\n  RewriteEngine On\r\n  RewriteBase \/\r\n  RewriteRule ^index\\.html$ - [L]\r\n  RewriteCond %{REQUEST_FILENAME} !-f\r\n  RewriteCond %{REQUEST_FILENAME} !-d\r\n  RewriteRule . \/index.html [L]\r\n<\/IfModule>\r\n```\r\n\r\n\u9664\u4e86`mod_rewrite`\uff0c\u4f60\u4e5f\u53ef\u4ee5\u4f7f\u7528 [FallbackResource (opens new window)][2]\u3002\r\n\r\nNginx\r\n-----\r\n\r\n```\r\nlocation \/ {\r\n  try_files $uri $uri\/ \/index.html;\r\n}\r\n```\r\n\r\n\u539f\u751f Node.js\r\n----------\r\n\r\n```\r\nconst http = require('http')\r\nconst fs = require('fs')\r\nconst httpPort = 80\r\n \r\nhttp.createServer((req, res) => {\r\n  fs.readFile('index.html', 'utf-8', (err, content) => {\r\n    if (err) {\r\n      console.log('We cannot open \"index.html\" file.')\r\n    }\r\n \r\n    res.writeHead(200, {\r\n      'Content-Type': 'text\/html; charset=utf-8'\r\n    })\r\n \r\n    res.end(content)\r\n  })\r\n}).listen(httpPort, () => {\r\n  console.log('Server listening on: http:\/\/localhost:%s', httpPort)\r\n})\r\n```\r\n\r\n\u57fa\u4e8e Node.js \u7684 Express\r\n--------------------\r\n\r\n\u5bf9\u4e8e Node.js\/Express\uff0c\u8bf7\u8003\u8651\u4f7f\u7528 [connect-history-api-fallback \u4e2d\u95f4\u4ef6][3]\u3002\r\n\r\nInternet Information Services (IIS)\r\n-----------------------------------\r\n\r\n\u5b89\u88c5 [IIS UrlRewrite(opens new window)][4]\r\n\u5728\u4f60\u7684\u7f51\u7ad9\u6839\u76ee\u5f55\u4e2d\u521b\u5efa\u4e00\u4e2a`web.config`\u6587\u4ef6\uff0c\u5185\u5bb9\u5982\u4e0b\uff1a\r\n```\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<configuration>\r\n  <system.webServer>\r\n    <rewrite>\r\n      <rules>\r\n        <rule name=\"Handle History Mode and custom 404\/500\" stopProcessing=\"true\">\r\n          <match url=\"(.*)\" \/>\r\n          <conditions logicalGrouping=\"MatchAll\">\r\n            <add input=\"{REQUEST_FILENAME}\" matchType=\"IsFile\" negate=\"true\" \/>\r\n            <add input=\"{REQUEST_FILENAME}\" matchType=\"IsDirectory\" negate=\"true\" \/>\r\n          <\/conditions>\r\n          <action type=\"Rewrite\" url=\"\/\" \/>\r\n        <\/rule>\r\n      <\/rules>\r\n    <\/rewrite>\r\n  <\/system.webServer>\r\n<\/configuration>\r\n```\r\n\r\nCandy\r\n-----\r\n\r\n```\r\nrewrite {\r\n    regexp .*\r\n    to {path} \/\r\n}\r\n```\r\n\r\nFirebase \u4e3b\u673a\r\n-----------\r\n\r\n```\r\n{\r\n  \"hosting\": {\r\n    \"public\": \"dist\",\r\n    \"rewrites\": [\r\n      {\r\n        \"source\": \"**\",\r\n        \"destination\": \"\/index.html\"\r\n      }\r\n    ]\r\n  }\r\n}\r\n```\r\n\r\n\u53cb\u60c5\u63d0\u793a\r\n----\r\n\r\n\u8fd9\u4e48\u505a\u4ee5\u540e\uff0c\u4f60\u7684\u670d\u52a1\u5668\u5c31\u4e0d\u518d\u8fd4\u56de 404 \u9519\u8bef\u9875\u9762\uff0c\u56e0\u4e3a\u5bf9\u4e8e\u6240\u6709\u8def\u5f84\u90fd\u4f1a\u8fd4\u56de`index.html`\u6587\u4ef6\u3002\u4e3a\u4e86\u907f\u514d\u8fd9\u79cd\u60c5\u51b5\uff0c\u4f60\u5e94\u8be5\u5728 Vue \u5e94\u7528\u91cc\u9762\u8986\u76d6\u6240\u6709\u7684\u8def\u7531\u60c5\u51b5\uff0c\u7136\u540e\u518d\u7ed9\u51fa\u4e00\u4e2a 404 \u9875\u9762\u3002\r\n\r\n\r\n> \u7248\u6743\u58f0\u660e\uff1a\u672c\u6587\u4e3aweixin_32668125\u539f\u521b\u6587\u7ae0\uff0c\u9075\u5faa CC 4.0 BY-SA \u7248\u6743\u534f\u8bae\uff0c\u8f6c\u8f7d\u8bf7\u9644\u4e0a\u539f\u6587\u51fa\u5904\u94fe\u63a5\u548c\u672c\u58f0\u660e\u3002\r\n> \u672c\u6587\u94fe\u63a5\uff1ahttps:\/\/blog.csdn.net\/weixin_32668125\/article\/details\/121785680\r\n\r\n\r\n  [1]: https:\/\/sangsir.com\/usr\/uploads\/2023\/07\/1860263836.png\r\n  [2]: https:\/\/httpd.apache.org\/docs\/2.2\/mod\/mod_dir.html#fallbackresource\r\n  [3]: https:\/\/github.com\/bripkens\/connect-history-api-fallback\r\n  [4]: https:\/\/www.iis.net\/downloads\/microsoft\/url-rewrite","authorId":"1","password":"","date":{"timeStamp":1689705780,"year":"2023","month":"07","day":"19"},"author":[{"uid":"1","name":"szj1006","mail":"i@sangsir.com","url":"https:\/\/sangsir.com","screenName":"SangSir"}],"tag":[{"name":"uniapp"},{"name":"h5"}],"thumb":[{"str_value":"https:\/\/sangsir.com\/usr\/themes\/pinghsu\/images\/thumbs\/4.jpg"}]},{"cid":"124","title":"Uniapp\u4e2dplus.contacts.getAddressBook\u83b7\u53d6\u901a\u8baf\u5f55\u4e3a\u8fd4\u56detype:0\u89e3\u51b3\u65b9\u6848","created":"1689149400","type":"post","slug":"plus-contacts-getAddressBook","text":"<!--markdown-->![\u56fe\u72471][1]\r\n![\u56fe\u72472][2]\r\n\u5728\u5e72\u6d3b\u7684\u65f6\u5019\u540c\u4e8b\u53d1\u73b0\u83b7\u53d6\u4e0d\u5230\u901a\u8baf\u5f55\uff0c\u5b98\u7f51\u4e5f\u6ca1\u6709\u5199\u51fa\u5177\u4f53\u7684\u83b7\u53d6\u901a\u8baf\u5f55\u4ee3\u7801\u7684\u65b9\u6cd5\uff0c\u6700\u540e\u767e\u5ea6\u641c\u7d22\u5230\u4e86\u89e3\u51b3\u65b9\u6848\uff0c\u4e0d\u58a8\u8ff9\u76f4\u63a5\u8d34\u4ee3\u7801\uff1a\r\n```js\r\nplus.contacts.getAddressBook(plus.contacts.ADDRESSBOOK_PHONE, function( addressbook ) {\r\n\t\/\/  console.log(addressbook)\r\n\taddressbook.find([\"displayName\",\"phoneNumbers\"],res=>{\r\n\t\tconsole.log(res)\r\n\t\tfor(var i in res){\r\n\t\t\tconsole.log(res[i]);\r\n\t\t}\r\n\t})\r\n}, function(error) {\r\n\tconsole.log(error.message);\r\n});\r\n```\r\n\r\n\u66f4\u591a\u64cd\u4f5c\uff0c\u611f\u8c22\u5927\u4f6c\u7684\u6587\u7ae0\uff1a[contacts \u6a21\u5757\u7ba1\u7406\u7cfb\u7edf\u901a\u8baf\u5f55][3]\r\n\r\n\r\n  [1]: https:\/\/ask.dcloud.net.cn\/uploads\/questions\/20201103\/33b454d1e253749c7892f087f2baa3ee.png\r\n  [2]: https:\/\/ask.dcloud.net.cn\/uploads\/questions\/20201103\/7c03d715cd57469f8f5306026a2b26c5.png\r\n  [3]: https:\/\/blog.csdn.net\/weixin_43167546\/article\/details\/116236413","authorId":"1","password":"","date":{"timeStamp":1689149400,"year":"2023","month":"07","day":"12"},"author":[{"uid":"1","name":"szj1006","mail":"i@sangsir.com","url":"https:\/\/sangsir.com","screenName":"SangSir"}],"tag":[{"name":"uniapp"},{"name":"js"},{"name":"\u901a\u8baf\u5f55"}],"thumb":[{"str_value":"https:\/\/sangsir.com\/usr\/themes\/pinghsu\/images\/thumbs\/6.jpg"}]},{"cid":"112","title":"\u5929\u5730\u56fe\u4fee\u6539\u4e3b\u9898\u989c\u8272\u4fee\u6539\u80cc\u666f\u8272","created":"1649924520","type":"post","slug":"tianditu-map-style","text":"<!--markdown-->\u524d\u8a00\r\n==\r\n\r\n![\u5929\u5730\u56fe\u9ed8\u8ba4\u5730\u56fe\u6837\u5f0f][1]\r\n\u6700\u8fd1\u516c\u53f8\u6bd4\u8f83\u5fd9\uff0c\u4e5f\u6ca1\u65f6\u95f4\u53d1\u4e9b\u535a\u6587\uff0c\u6700\u8fd1\u6b63\u597d\u7531\u4e8e\u9879\u76ee\u9700\u8981\u5927\u5c4f\u5c55\u793a\u5730\u56fe\uff0c\u5927\u5c4f\u591a\u6570\u90fd\u662f\u4f7f\u7528\u6697\u84dd\u8272\u5e95\u56fe\uff0c\u76ee\u524d\u5929\u5730\u56fe\u4e0d\u63d0\u4f9b\u6697\u84dd\u8272\u74e6\u7247\uff0c\u81ea\u5e26\u7684JS API\u53ea\u652f\u6301black\u548cindigo\uff0c\u4f46\u9879\u76ee\u8981\u6c42\u5fc5\u987b\u8981\u7528\u5929\u5730\u56fe\u3002\u641c\u7d22\u5f15\u64ce\u627e\u4e86\u627e\u89e3\u51b3\u65b9\u6848\uff0c\u4e5f\u662f\u82b1\u91cc\u80e1\u54e8\u7684\u5404\u79cd\u65b9\u5f0f\u90fd\u6709\uff0c\u6700\u540e\u51b3\u5b9a\u7528CSS\u7684filter\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u5728\u535a\u5ba2\u8bb0\u5f55\u4e0b\u89e3\u51b3\u65b9\u6cd5\u3002\r\n\r\n\u7075\u611f\r\n==\r\n\r\n> https:\/\/blog.csdn.net\/Corey_mengxiaodong\/article\/details\/84619875\r\n\r\n\u901a\u8fc7\u8fd9\u7bc7\u535a\u6587\u7684\u4ecb\u7ecd\uff0c\u5927\u6982\u786e\u5b9a\u4e86\u65b9\u5411\uff0c\u5c31\u662f\u7528`filter:url()`\u52a0\u4e0a\u9884\u5b9a\u4e49\u6548\u679c\u7684\u51fd\u6570\u8c03\u6574\u51fa\u6700\u7ec8\u6548\u679c\u3002\r\n\r\n\u65b9\u6cd5\r\n==\r\n\r\n1. \u6253\u5f00\uff1a[CSS Filter \u7f16\u8f91\u5668][2]\r\n2. \u4e0a\u4f20\u5929\u5730\u56fe\u7684\u622a\u56fe\u5230\u7f16\u8f91\u5668\uff0c\u8c03\u6574\u4e0b\u65b9\u9884\u8bbe\u53ca\u53f3\u4fa7\u53c2\u6570\r\n![\u8c03\u6574\u53c2\u6570][3]\r\n3. \u5c06svg\u9884\u8bbe\u653e\u7f6e\u5728<body>\u4e2d\uff0c\u5c06\u7f16\u8f91\u5668\u4e2dCSS Code\u7684\u680f\u76ee\u6240\u751f\u6210\u7684CSS\uff0c\u52a0\u5728\u5929\u5730\u56fe\u7684canvas\u4e0a\u9762\r\n![CSS Code][4]\r\n![\u5929\u5730\u56fe\u6539\u8272\u6548\u679c][6]\r\n\r\n> \u5982\u679c\u9884\u8bbe\u6ca1\u6709\u60f3\u8981\u7684\u6548\u679c\uff0c\u53ef\u4ee5\u4f7f\u7528[SVG Gradient Map Filter][5]\uff0c\u81ea\u5df1\u8c03\u51fa\u4e00\u4e2a\r\n\r\n\u6548\u679c\u5c55\u793a\r\n====\r\n\r\n\u7ecf\u8fc7\u8c03\u6574\u540e\u7684\u6700\u7ec8\u5c55\u793a\u6548\u679c\uff0c\u8c01\u80fd\u60f3\u5230\u8fd9\u7adf\u7136\u662f\u5929\u5730\u56fe\u5462\uff1f\r\n![\u8c03\u6574\u540e\u7684\u6700\u7ec8\u5c55\u793a\u6548\u679c][7]\r\n\r\n  [1]: https:\/\/s2.loli.net\/2022\/04\/14\/FnPl1KzHgtB8UQO.png\r\n  [2]: https:\/\/codepen.io\/stoumann\/pen\/MWeNmyb\r\n  [3]: https:\/\/s2.loli.net\/2022\/04\/14\/PZinNUebGJTDvXL.png\r\n  [4]: https:\/\/s2.loli.net\/2022\/04\/14\/4PUBMbCu9EfAFcS.png\r\n  [5]: https:\/\/yoksel.github.io\/svg-gradient-map\r\n  [6]: https:\/\/s2.loli.net\/2022\/04\/14\/kflK2pX615UsTYj.png\r\n  [7]: https:\/\/s2.loli.net\/2022\/04\/14\/tLfgCdk78mKc6Sv.png","authorId":"1","password":"","date":{"timeStamp":1649924520,"year":"2022","month":"04","day":"14"},"author":[{"uid":"1","name":"szj1006","mail":"i@sangsir.com","url":"https:\/\/sangsir.com","screenName":"SangSir"}],"tag":[{"name":"css"},{"name":"\u5929\u5730\u56fe"},{"name":"filter"}],"thumb":[{"str_value":"https:\/\/sangsir.com\/usr\/themes\/pinghsu\/images\/thumbs\/3.jpg"}]}]}