如何使用jquery刷新当前页面
下面介绍全页面刷新方法:有时候可能会用到
<a href="javascript:;" title="返回顶部" class="topbut"><img src="/images/top.png"/></a>
$('.topbut').click(function(){
$('body,html').animate({scrollTop:0},500)
字体大小调整:<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>
<script type="text/javascript" src="js/layer/layer.js"></script>
<script Language="JavaScript" Type="text/javascript">
layer.msg('处理成功',{
<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}
<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;}
jquery自动获取到当前页面某个id然给他给加css,如果有这个id就给他加上一个css,如果没有就退出查询
往id为nav2的元素新增个class方法 on
存在元素添加,不存在直接返回
<script type="text/javascript">
<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>
<div class="anco">
<p id="rb">喜欢钱</p>
<p id="rb2">我喜欢钱</p>
<p id="rb3">我很喜欢钱</p>
<p id="rb4">我很喜欢有钱</p>
<p id="rb5">我很喜欢有很多钱</p>
<button id="hxjxjs" type="button">元素内文字后加内容</button>
<button id="hxjn" type="button">元素内文字前加内容</button>
<button id="xjswzr" type="button">元素外元素后面加内容</button>