19
2019
02

使用jquery刷新当前页面

如何使用jquery刷新当前页面

下面介绍全页面刷新方法:有时候可能会用到

13
2019
02

jquery实现返回顶部

<a href="javascript:;" title="返回顶部" class="topbut"><img src="/images/top.png"/></a>

$('.topbut').click(function(){

    $('body,html').animate({scrollTop:0},500)

20
2019
01

jquery调整文章字体大小

字体大小调整:<span class="biga"><img src="/images/a+.jpg" /></span><span class="bigb"><img src="/images/a-.jpg" /></span><span class="bigc"><img src="/images/a.jpg" /></span>

08
2018
11

jq弹窗发布成功效果

<script type="text/javascript" src="js/layer/layer.js"></script>

<script Language="JavaScript" Type="text/javascript">

layer.msg('处理成功',{

21
2018
10

jquery_遍历数组下级元素

<style type="text/css">

#one{ width:1000px; height:800px; border:1px solid #0000FF; margin:30px}

#two{ width:800px; height:600px; border:1px solid #FF0000; margin:30px}

#three{ width:600px; height:400px; border:1px solid #FF00FF; margin:30px}

15
2018
10

jquery_遍历数组上级元素

<style type="text/css">

.one{width:1000px; height:800px; border:1px solid #FF0000}

.two{width:800px; height:600px; border:1px solid #000000; margin:50px;}

.three{width:700px; height:500px; border:1px solid #CC00FF; margin:50px;}

13
2018
10

jquery自动获取到当前页面某个id然给他给加css

jquery自动获取到当前页面某个id然给他给加css,如果有这个id就给他加上一个css,如果没有就退出查询

往id为nav2的元素新增个class方法 on

存在元素添加,不存在直接返回

<script type="text/javascript">

04
2018
08

layer弹窗打开对应的id

<script src="js/jquery-1.12.3-jquery.min.js"></script>

<script src="layer/layer.js"></script>


<a onClick="vote('<%=rs("id")%>')"><%=rs("userID")%></a>

04
2018
08

jquery删除元素

<div class="anco">

<p id="rb">喜欢钱</p>

<p id="rb2">我喜欢钱</p>

<p id="rb3">我很喜欢钱</p>

<p id="rb4">我很喜欢有钱</p>

<p id="rb5">我很喜欢有很多钱</p>

03
2018
08

jquery元素内和元素前后添加文字

<button id="hxjxjs" type="button">元素内文字后加内容</button>

<button id="hxjn" type="button">元素内文字前加内容</button>

<button id="xjswzr" type="button">元素外元素后面加内容</button>