<br />
<b>Deprecated</b>:  mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in <b>D:\wwwroot\bbs.5ucms.com\source\class\discuz\discuz_database.php</b> on line <b>177</b><br />
<?xml version="1.0" encoding="gbk"?>
<rss version="2.0">
  <channel>
    <title>5ucms论坛 - JS/JQ</title>
    <link>http://bbs.5ucms.com/forum-51-1.html</link>
    <description>Latest 20 threads of JS/JQ</description>
    <copyright>Copyright(C) 5ucms论坛</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Wed, 15 Apr 2026 17:07:22 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>http://bbs.5ucms.com/static/image/common/logo_88_31.gif</url>
      <title>5ucms论坛</title>
      <link>http://bbs.5ucms.com/</link>
    </image>
    <item>
      <title>JQ判断当前页所有的input是否选中 如果选中变红</title>
      <link>http://bbs.5ucms.com/thread-962-1-1.html</link>
      <description><![CDATA[]]></description>
      <category>JS/JQ</category>
      <author>admin</author>
      <pubDate>Sat, 05 Jun 2021 00:38:13 +0000</pubDate>
    </item>
    <item>
      <title>jQuery根据name属性进行选择</title>
      <link>http://bbs.5ucms.com/thread-961-1-1.html</link>
      <description><![CDATA[$(\&quot;div[class]\&quot;) 选择所有含有class属性的div元素 
$(\&quot;input[name=\'keyl\']\&quot;) 选择所有的name属性等于\'keyl\'的input元素 

$(\&quot;input[name!=\'keyl\']\&quot;) 选择所有的name属性不等于\'keyl\'的input元素 

$(\&quot;input[name^=\'keyl\']\&quot;) 选择所有的name属性以\'keyl\'开头的input ...]]></description>
      <category>JS/JQ</category>
      <author>admin</author>
      <pubDate>Sat, 05 Jun 2021 00:23:53 +0000</pubDate>
    </item>
    <item>
      <title>JQ点击复选框自动点击二级、三级的栏目复选 并改色</title>
      <link>http://bbs.5ucms.com/thread-879-1-1.html</link>
      <description><![CDATA[$(\&quot;:input\&quot;).on(\&quot;click\&quot;,function () {
               var label = $(this).parent(\&quot;.selectit\&quot;).parent(\&quot;li\&quot;).children(\&quot;.children\&quot;).find(\&quot;input\&quot;);
               console.log(label);
               if($(this).is( \':checked\')) {
             ..]]></description>
      <category>JS/JQ</category>
      <author>admin</author>
      <pubDate>Sun, 30 May 2021 03:06:55 +0000</pubDate>
    </item>
    <item>
      <title>jQuery 操作复选框(checkbox) attr checked第二次不起作用的BUG解决</title>
      <link>http://bbs.5ucms.com/thread-878-1-1.html</link>
      <description><![CDATA[把你要用到的

$(\'obj\').attr(\'checked\',true)
$(\'obj\').attr(\'checked\',false)

改为

$(\'obj\').prop(\'checked\',true);
$(\'obj\').prop(\'checked\',false);

否则会出现第二次控制这个选择时，失效的问题]]></description>
      <category>JS/JQ</category>
      <author>admin</author>
      <pubDate>Sun, 30 May 2021 02:45:45 +0000</pubDate>
    </item>
    <item>
      <title>js限制标题文本长度函数</title>
      <link>http://bbs.5ucms.com/thread-820-1-1.html</link>
      <description><![CDATA[]]></description>
      <category>JS/JQ</category>
      <author>admin</author>
      <pubDate>Tue, 25 May 2021 05:58:07 +0000</pubDate>
    </item>
    <item>
      <title>关于 json 单引号和双引号区别--请使用双引号</title>
      <link>http://bbs.5ucms.com/thread-818-1-1.html</link>
      <description><![CDATA[由于某些原因，在将js json数据传到as 中处理的时候出现了“无效的json解析输入” ，于是查找了一下js参数是否有问题，发现json空字段的格式如下：\&quot;id:\&quot;，这样确实是漏了些东西，改の。改好后出现的还是那个报错，差点以为是as的问题，看了一下js为\&quot;id:\'\'\&quot;,，然后百度一 ...]]></description>
      <category>JS/JQ</category>
      <author>admin</author>
      <pubDate>Mon, 24 May 2021 09:33:00 +0000</pubDate>
    </item>
    <item>
      <title>Js/Jquery获取iframe中的元素</title>
      <link>http://bbs.5ucms.com/thread-469-1-1.html</link>
      <description><![CDATA[JavaScript
在父窗口中获取iframe中的元素

格式：window.frames[\&quot;iframe的name值\&quot;].document.getElementById(\&quot;iframe中控件的ID\&quot;).click(); 
实例：window.frames[\&quot;ifm\&quot;].document.getElementById(\&quot;btnOk\&quot;).click(); 
 
格式： 

实例： 

 在iframe中获取父 ...]]></description>
      <category>JS/JQ</category>
      <author>admin</author>
      <pubDate>Tue, 30 Apr 2019 03:24:04 +0000</pubDate>
    </item>
    <item>
      <title>利用搜狐接口JS判断访客所在地</title>
      <link>http://bbs.5ucms.com/thread-412-1-1.html</link>
      <description><![CDATA[var now = new Date()
                            $(\&quot;#showtime\&quot;).html(\&quot;\&quot; + now.getFullYear() + \&quot;年\&quot; + (now.getMonth() + 1) + \&quot;月\&quot; + now.getDate() + \&quot;日\&quot;);
                            $(\&quot;#t\&quot;).html ...]]></description>
      <category>JS/JQ</category>
      <author>admin</author>
      <pubDate>Sun, 31 Mar 2019 15:58:32 +0000</pubDate>
    </item>
    <item>
      <title>百度判断手机终端并自动跳转uaredirect.js连接代码失效的解决办法</title>
      <link>http://bbs.5ucms.com/thread-82-1-1.html</link>
      <description><![CDATA[现在很多人还对PC端内页跳转到手机端的指定内页，用百度的一个js代码挺好用，如下：
1、先要在PC端头部做PC端内页地址要跳转到哪个手机端的页面的定义，如下：

说明：$shipei是变量,自己写。如果您就一个页面，就指定到具体页面即可。
2、使用js跳转，如下：
**** ...]]></description>
      <category>JS/JQ</category>
      <author>admin</author>
      <pubDate>Tue, 06 Jun 2017 13:16:55 +0000</pubDate>
    </item>
    <item>
      <title>js获取当前域名</title>
      <link>http://bbs.5ucms.com/thread-21-1-1.html</link>
      <description><![CDATA[]]></description>
      <category>JS/JQ</category>
      <author>admin</author>
      <pubDate>Sat, 27 May 2017 13:49:42 +0000</pubDate>
    </item>
  </channel>
</rss>