<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>Yoo趣儿 - JavaScript</title>
    <link>https://yooqur.com/forum/50/1</link>
    <description>Latest 20 threads of JavaScript</description>
    <copyright>Copyright(C) Yoo趣儿</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Tue, 12 May 2026 23:40:42 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>https://yooqur.com/static/image/common/logo_88_31.gif</url>
      <title>Yoo趣儿</title>
      <link>https://yooqur.com/</link>
    </image>
    <item>
      <title>智能香氛机小程序合作招募</title>
      <link>https://yooqur.com/thread/720599-1.html</link>
      <description><![CDATA[🚀 智能香氛机微信小程序合作招募
我们的后端、平台及设备体系均已成熟，并配套有 APP ，产品已在国内外市场发布。
现计划开发小程序，寻找具备蓝牙 / Wi-Fi / 蜂窝 IoT 终端开发经验的团队或个人，共同推动高品质智能终端落地。最好是珠三角地区，有意者+v:d3VmdWxpbjA ...]]></description>
      <category>JavaScript</category>
      <author>Trinks</author>
      <pubDate>Tue, 07 Apr 2026 01:21:15 +0000</pubDate>
    </item>
    <item>
      <title>[油猴脚本推荐] B 站一键备注 Rev</title>
      <link>https://yooqur.com/thread/712261-1.html</link>
      <description><![CDATA[B 站一键备注 Rev
Bilibili 一键备注用户 | B 站备注功能
https://greasyfork.org/zh-CN/scripts/563444-b%E7%AB%99%E4%B8%80%E9%94%AE%E5%A4%87%E6%B3%A8-rev
（注：此版本为修订版本）
原版本为：B 站一键备注
原作者：pxoxq
修改部分：

[*]全面适配 B 站深色模式
[* ...]]></description>
      <category>JavaScript</category>
      <author>zsxdc</author>
      <pubDate>Wed, 21 Jan 2026 11:15:40 +0000</pubDate>
    </item>
    <item>
      <title>分享一道 Node.js 的面试题，考察 JS 相关的最基本的掌握程度，代码完全来自官方文档</title>
      <link>https://yooqur.com/thread/710997-1.html</link>
      <description><![CDATA[简述以下代码的输出结果，并解释执行过程：
import { once, EventEmitter } from \'node:events\';
import process from \'node:process\';
const ee = new EventEmitter();
process.nextTick(() =&gt; {
  ee.emit(\'myevent\', 42);
});
const [value] = await once(ee, \'myev]]></description>
      <category>JavaScript</category>
      <author>superhot</author>
      <pubDate>Thu, 15 Jan 2026 09:31:35 +0000</pubDate>
    </item>
    <item>
      <title>js 判空值 最佳实践</title>
      <link>https://yooqur.com/thread/702029-1.html</link>
      <description><![CDATA[变量 a
我通常是
if (a) {...}
但是会遇到数字 0 的情况，那就是
if (a !== null &amp;&amp; a !== undefined) {...}
然后想着是不是要封装一个isEmpty函数
请问需要封装吗？]]></description>
      <category>JavaScript</category>
      <author>mqnu00</author>
      <pubDate>Thu, 06 Nov 2025 17:15:54 +0000</pubDate>
    </item>
    <item>
      <title>简单的图像算法为什么 AI 搞不定呢</title>
      <link>https://yooqur.com/thread/701747-1.html</link>
      <description><![CDATA[看这个网站 pinkpfp.com ，算法应该不难。我使用 nextjs+canvas ，使用 BT.709 业界标准，在 AI 帮助下做了很多高大上的算法探索，但就是效果没有它的好，为什么呢]]></description>
      <category>JavaScript</category>
      <author>yunchun</author>
      <pubDate>Tue, 04 Nov 2025 11:50:59 +0000</pubDate>
    </item>
    <item>
      <title>有没有前端大佬，帮我看一下这个网站底部的粒子动画怎么做的。</title>
      <link>https://yooqur.com/thread/683273-1.html</link>
      <description><![CDATA[https://lusion.co/projects/
我想做一个差不多，threejs 有没有 demo]]></description>
      <category>JavaScript</category>
      <author>zhongchunfeng</author>
      <pubDate>Fri, 19 Sep 2025 12:14:03 +0000</pubDate>
    </item>
    <item>
      <title>js 小白，请教一下为什么网页上的播放器， Chrome 控制台不能用 querySelector 直接获取到呢</title>
      <link>https://yooqur.com/thread/672292-1.html</link>
      <description><![CDATA[想给一个网课网站加一个自动调整播放速度的小插件，按照之前的一些粗浅的经验，从审查元素里复制 JS 路径，然后就可以在控制台或者 extension 里获取到播放器这个元素了
video = document.querySelector(\&quot;#vidplayer &gt; video\&quot;)
大概像这样。但是发现这个网站很神奇的一 ...]]></description>
      <category>JavaScript</category>
      <author>linyuzhou</author>
      <pubDate>Tue, 24 Dec 2024 08:01:25 +0000</pubDate>
    </item>
    <item>
      <title>Python 代码转换为 Javascript 运算结果不一致</title>
      <link>https://yooqur.com/thread/669087-1.html</link>
      <description><![CDATA[def cid_hash_file(path):
    h = hashlib.sha1()
    size = os.path.getsize(path)
    with open(path, \'rb\') as stream:
        if size 
上面的代码用 chatGPT 转换后是这样的
function cidHashFile(path) {
  const h = crypto.createHash(\'sha1\');
  con]]></description>
      <category>JavaScript</category>
      <author>f360family123</author>
      <pubDate>Sat, 07 Dec 2024 10:01:16 +0000</pubDate>
    </item>
    <item>
      <title>css 的 justify-content 等效语法？</title>
      <link>https://yooqur.com/thread/667769-1.html</link>
      <description><![CDATA[记得在哪里见过一次 justify-content 的等效写法，还特意试了一下，效果完全一样，哪位伙伴知道的？]]></description>
      <category>JavaScript</category>
      <author>humbass</author>
      <pubDate>Wed, 04 Dec 2024 21:01:24 +0000</pubDate>
    </item>
    <item>
      <title>1.4 万人联名请愿，要求取消甲骨文的 JavaScript 商标所有权</title>
      <link>https://yooqur.com/thread/663580-1.html</link>
      <description><![CDATA[https://www.ithome.com/0/813/658.htm]]></description>
      <category>JavaScript</category>
      <author>PTLin</author>
      <pubDate>Wed, 27 Nov 2024 09:01:56 +0000</pubDate>
    </item>
    <item>
      <title>请教一下使用油猴脚本修改 html 内容后, 样式不生效的问题</title>
      <link>https://yooqur.com/thread/663138-1.html</link>
      <description><![CDATA[在脚本的 table 中 append 了一条数据, 页面成功展示了, 但是样式不正常, 
试了下在 console 中 append, 问题一样
但是直接在浏览器 dev tools 编辑元素的话, 样式可以正常展示
请问有什么办法是样式生效吗?
 ...]]></description>
      <category>JavaScript</category>
      <author>yazinnnn0</author>
      <pubDate>Tue, 26 Nov 2024 10:03:21 +0000</pubDate>
    </item>
    <item>
      <title>async 函数中止/task local 方案后记,V8 上的另一个可行思路</title>
      <link>https://yooqur.com/thread/659835-1.html</link>
      <description><![CDATA[之前做了一次失败的尝试，做了一个 hook Promise 的方案。
/t/1081474
省流说下这个方案失败的原因是
native code 中(例如 fetch)创建的 promise 不会使用 Hooked 的 Promise ，并且 V8 原生 await 实现不会在 onfulfilled 返回前运行 await 后面的代码，只有通过类似 b ...]]></description>
      <category>JavaScript</category>
      <author>pursuer</author>
      <pubDate>Sat, 16 Nov 2024 07:01:05 +0000</pubDate>
    </item>
    <item>
      <title>有没有独立的同时可以 pc 移动端用的三级联动城市选择组件啊</title>
      <link>https://yooqur.com/thread/658689-1.html</link>
      <description><![CDATA[实在不想自己写三个 select 来回改了。编辑的时候好痛苦。]]></description>
      <category>JavaScript</category>
      <author>dzdh</author>
      <pubDate>Mon, 11 Nov 2024 06:03:43 +0000</pubDate>
    </item>
    <item>
      <title>请教 JSEncrypt.js 的一个代码问题</title>
      <link>https://yooqur.com/thread/642180-1.html</link>
      <description><![CDATA[var jse = new JSEncrypt();
var pk =\'MFswDQYJKoZIhvcNAQEBBQADSgAwRwJA4eeQZu0GkgzXYypfcKRxRiclJC0Q5A5+T+EXcSpcaZlq/eMyy4oJIUfvYsCsvIhAENB2YCTVmdLjWeHbSPXKJQIDAQAB\';
jse.setPublicKey(pk);
console.log(jse.getPublicKeyB64());
结果输出是 MFwwDQYJKo]]></description>
      <category>JavaScript</category>
      <author>pinocc012</author>
      <pubDate>Wed, 02 Oct 2024 14:02:48 +0000</pubDate>
    </item>
    <item>
      <title>淘宝 NPM 源竟然会篡改包的下载版本</title>
      <link>https://yooqur.com/thread/635222-1.html</link>
      <description><![CDATA[淘宝源擅自把 path-to-regexp 1.8.0 版本的下载地址改成了 1.9.0 版本，导致使用了 package-lock.json, yarn.lock 的工程安装依赖失败（ checksum 校验失败）。

[*]淘宝源: https://registry.npmmirror.com/path-to-regexp/1.8.0
[*]官方源: https://registry.npmjs.or ...]]></description>
      <category>JavaScript</category>
      <author>bianjp</author>
      <pubDate>Thu, 12 Sep 2024 02:02:14 +0000</pubDate>
    </item>
    <item>
      <title>如何设置 prettier 在不超过 printWidth 长度也能换行</title>
      <link>https://yooqur.com/thread/634775-1.html</link>
      <description><![CDATA[prettier 真的不好用
printWidth 设置 80 ，需要换行的地方太多。设置 120 ，有些语句需要换行提高可读性，但却强制要求一行。
那如何设置在不超过 printWidth 情况下，代码换行而不报错呢？]]></description>
      <category>JavaScript</category>
      <author>jiangzm</author>
      <pubDate>Wed, 11 Sep 2024 05:02:14 +0000</pubDate>
    </item>
    <item>
      <title>postcss-px-to-viewport-8-plugin 能设置多个配置吗</title>
      <link>https://yooqur.com/thread/634770-1.html</link>
      <description><![CDATA[vite vue3 的项目中使用了 postcss-px-to-viewport-8-plugin 插件和 vant ，但是设计稿是 750px ，vant 的是 375px ，有办法针对这种情况设置不一样的 viewportWidth 吗，还是有其他插件可以用]]></description>
      <category>JavaScript</category>
      <author>iamqiwei</author>
      <pubDate>Wed, 11 Sep 2024 05:01:49 +0000</pubDate>
    </item>
    <item>
      <title>VSCode 里编辑.html 文件时 ctrl+左键点击函数名为什么无法跳转到引用的 js 文件中的函数？</title>
      <link>https://yooqur.com/thread/633270-1.html</link>
      <description><![CDATA[rt
.html 中引入同目录下.js 文件，然后调用.js 中的函数，vscode 中 cmd+点击函数名无法进入.js 文件。 是不是我使用的姿势不对？]]></description>
      <category>JavaScript</category>
      <author>raw0xff</author>
      <pubDate>Sun, 08 Sep 2024 10:01:43 +0000</pubDate>
    </item>
    <item>
      <title>如何实现一个小体积的 js docker 镜像</title>
      <link>https://yooqur.com/thread/627013-1.html</link>
      <description><![CDATA[在服务端一般使用 node 来运行 js ，除了 node 外流行的还有 bun/deno 。
但这三个运行时的打包体积都不小，在精简的情况下也在 50 mb 以上，我在这里记录一下我是如何将一个原来使用 node 开发的服务迁移为 3.78MB 的 docker 镜像。

https://hub.docker.com/layers/ll ...]]></description>
      <category>JavaScript</category>
      <author>llej</author>
      <pubDate>Sat, 31 Aug 2024 12:07:01 +0000</pubDate>
    </item>
    <item>
      <title>请教大家一个问题， js，异步执行</title>
      <link>https://yooqur.com/thread/602837-1.html</link>
      <description><![CDATA[运行环境：nodejs
需求：提供一个方法 getD ，此方法内调用 ajax 接口获取数据，然后对外输出
1 、异步调用，比如会同时执行 30 次 getD
2 、当第一次调用 getD ，方法内没有数据，会从 ajax 拿数据，每次拿 10 条，等待中，当拿到数据后，用一条对外提供
3 、当第二次 ...]]></description>
      <category>JavaScript</category>
      <author>nbin2008</author>
      <pubDate>Wed, 24 Jul 2024 08:01:17 +0000</pubDate>
    </item>
  </channel>
</rss>