<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>拇指天空 - 原生JS</title>
    <link>https://www.mztk.cc/forum.php?mod=forumdisplay&amp;fid=124</link>
    <description>Latest 20 threads of 原生JS</description>
    <copyright>Copyright(C) 拇指天空</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Sun, 27 Sep 2026 03:17:56 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>https://www.mztk.cc/static/image/common/logo_88_31.gif</url>
      <title>拇指天空</title>
      <link>https://www.mztk.cc/</link>
    </image>
    <item>
      <title>JS随机昵称名字</title>
      <link>https://www.mztk.cc/forum.php?mod=viewthread&amp;tid=36288</link>
      <description><![CDATA[let osname = [
    \&quot;大漂亮\&quot;, \&quot;小姐姐\&quot;, \&quot;坏男孩\&quot;, \&quot;铁蛋\&quot;, \&quot;大海\&quot;, \&quot;小雪\&quot;, \&quot;小龙\&quot;, \&quot;小宝贝\&quot;, \&quot;小草\&quot;, \&quot;棒子\&quot;,
];
let i = parseInt(10 * Math.random()) + parseInt(10 * Math.random());
this.uname = osname[i];]]></description>
      <category>原生JS</category>
      <author>win</author>
      <pubDate>Wed, 29 Nov 2023 12:53:41 +0000</pubDate>
    </item>
    <item>
      <title>JS url传参，携带2个多个参数</title>
      <link>https://www.mztk.cc/forum.php?mod=viewthread&amp;tid=36284</link>
      <description><![CDATA[location.replace(\&quot;https://www.huaheyun.cn/index/serverdemo/index?rommid=\&quot; + this.homeid + \'&amp;username= \' +this.username);]]></description>
      <category>原生JS</category>
      <author>win</author>
      <pubDate>Sun, 26 Nov 2023 10:06:32 +0000</pubDate>
    </item>
    <item>
      <title>chrome edge浏览器开启IPV4</title>
      <link>https://www.mztk.cc/forum.php?mod=viewthread&amp;tid=36099</link>
      <description><![CDATA[在 chrome 浏览器地址栏中输入：chrome://flags/


在 edge浏览器地址栏中输入：edge://flags/



找到：
#enable-webrtc-hide-local-ips-with-mdns
修改为：Disabled
然后重启浏览器]]></description>
      <category>原生JS</category>
      <author>admin</author>
      <pubDate>Sun, 03 Sep 2023 04:30:42 +0000</pubDate>
    </item>
    <item>
      <title>JS中==和===的区别</title>
      <link>https://www.mztk.cc/forum.php?mod=viewthread&amp;tid=35290</link>
      <description><![CDATA[先说 \&quot;===\&quot;，这个比较简单。下面的规则用来判断两个值是否===相等：1、如果类型不同，就不相等2、如果两个都是数值，并且是同一个值，那么[相等]；(！例外)的是，如果其中至少一个是NaN，那么[不相等]。（判断一个值是否是NaN，只能用isNaN()来判断）3、如果两个都是字 ...]]></description>
      <category>原生JS</category>
      <author>win</author>
      <pubDate>Sat, 25 Mar 2023 08:02:04 +0000</pubDate>
    </item>
    <item>
      <title>JS时间戳int转换</title>
      <link>https://www.mztk.cc/forum.php?mod=viewthread&amp;tid=35211</link>
      <description><![CDATA[that.dwtime = 2017-08-18 08:02:56

let ntime = Date.parse(that.dwtime).toString();//10位int
let dwtime = ntime.toString().substr(0,10);]]></description>
      <category>原生JS</category>
      <author>admin</author>
      <pubDate>Tue, 14 Mar 2023 00:59:27 +0000</pubDate>
    </item>
    <item>
      <title>获取浏览器信息</title>
      <link>https://www.mztk.cc/forum.php?mod=viewthread&amp;tid=35210</link>
      <description><![CDATA[//获取浏览器
browser()
{
    console.log(\&quot;浏览器代码名: \&quot; + navigator.appCodeName);
    console.log(\&quot;浏览器名称: \&quot; + navigator.appName);
    console.log(\&quot;浏览器平台和版本: \&quot; + navigator.appVersion);
    console.log(\&quot;是否开启cookie: \&quot; + navigator.cook ...]]></description>
      <category>原生JS</category>
      <author>win</author>
      <pubDate>Mon, 13 Feb 2023 03:54:34 +0000</pubDate>
    </item>
    <item>
      <title>JS获取电脑*作系统</title>
      <link>https://www.mztk.cc/forum.php?mod=viewthread&amp;tid=35208</link>
      <description><![CDATA[//获取*作系统
getOsInfo() {
    let userAgent = window.navigator.userAgent.toLowerCase();
    let version = \'\';
    if (userAgent.indexOf(\&quot;win\&quot;) &gt; -1) {
        if (userAgent.indexOf(\&quot;windows nt 5.0\&quot;) &gt; -1 || userAgent.indexOf(\&quot;Windows 2000\&quot;) &gt; -1]]></description>
      <category>原生JS</category>
      <author>win</author>
      <pubDate>Mon, 13 Feb 2023 03:36:48 +0000</pubDate>
    </item>
  </channel>
</rss>