126 篇
建站知识总结与分享
搜索“query”
jQuery判断数组是否包含此元素:$.inArray()的用法
web 0 2
2527 0 2020-07-02 jQuery
判断数组里面是否包含某个元素可以使用  $.inArray("元素(字符串)",数组名称)  进行判断 ,当存在该元素(字符串)时,返回该元素在数组的下标,不存在时返回 -1 <script type="text/javascript"> $(function () { ...
jquery大小写字母转换
web 0 0
2252 0 2020-07-01 jQuery
1、转换成大写:toUpperCase() 2、转换成小写:toLowerCase() 3、举例:     (1)var a="aBcD";             a=a.toUpperCase();         ...
怎样查看jquery的版本号
taotaoit 0 0
3102 0 2020-06-30 jQuery
1,查看bai jquery 源码 查看源码的方法很简单,du右键 jquery.js ,用记事本打zhi开,不论是压dao缩版( min 版)还是开发版第一行,都会有 “v*.*.*” 看到了吧,”*.*.*“ 这个就是,你所用的 jquery 的版本号。 2,使用$.fn.jquery <script> $(...
jQuery根据链接获取锚点,缓慢移动到目标位置
taotaoit 0 0
2050 0 2020-06-30 jQuery
<a class="nav-link nav_link_tool" href="#hot1">链接1</a> <a class="nav-link nav_link_tool" href="#hot2">链接2</a> <a class="nav-link nav_link_tool...
jquery怎么获取a标签的href
web 0 0
2034 0 2020-06-30 jQuery
<a href="aaaaaa" id='hh'></a> var p = $('#hh').attr('href'); console.log(p);
jQuery锚点,从一个页面跳转到另一个页面的锚点(带平滑移动的效果)
web 0 0
2370 0 2020-06-29 jQuery
从一个页面跳转到另一个页面的指定位置 如果不带平滑移动的效果 很容易 加个 锚点就行了  比如 想跳到 mao.aspx 的页面 的div id="s" 的位置    那么   只用<a href="mao.aspx#s">  就可实现跳转到指定位置。 现在...
jQuery锚点缓慢移动到目标位置
web 0 0
2273 0 2020-06-29 jQuery
代码如下: <!DOCTYPE html> <html> <head> <title>锚点缓慢移动</title> </head> <script type="text/javascript" src="http://cdn.staticfile.org...
使用 jQuery 修改 css 中带有 !important 的样式属性
web 0 0
2144 0 2020-06-24 jQuery
外部样式为: div.test { width:auto !important; overflow:auto !important } 通过 $("div.test").css("width","100px"); 和 $("div.test").css("width","100px !important"); 是无...
TypeError: e.indexOf is not a function解决方法
web 0 0
7115 0 2020-06-23 jQuery
This error might be caused by jquery event aliases like .load, .unload or .error deprecated since jQuery 1.8. Look for these aliases in your code and replace them with .o...
jQuery中animate( )的方法及$("body").animate({'scrollTop':top},500)不被Firefox支持问题的解决
web 1 0
2608 0 2020-06-17 jQuery
jQuery中animate()使用方法: $(select).animate(styles,speed,easing,callback) 使用body的: $('body').animate({scrollTop:'0'},500); 被Chrome,IE,Opera支持,不被Firefox支持; 而使用html的: ...
jQuery实现输入框获取焦点和失去焦点增删css样式
taotaoit 0 0
2337 0 2020-04-18 jQuery
$(".input_ttit").focus(function(){ $(".form_ttit").removeClass("form_ttit_show"); }); $(".input_ttit").blur(function(){ $(".form_ttit").addClass("form_ttit_show...
jQuery添加移除CSS样式
web 0 0
2190 0 2020-04-16 jQuery
1. addClass() - 添加CSS类 $("#target").addClass("newClass"); //#target 指的是需要添加样式的元素的ID //newClass 指的是CSS类的名称 2. removeClass() - 移除CSS类 $("#target").removeClass("oldClass"); ...
Js/Jquery获取网页屏幕可见区域高度
web 0 0
2289 0 2020-04-09 jQuery
js document.body.clientWidth ==> BODY对象宽度 document.body.clientHeight ==> BODY对象高度 document.documentElement.clientWidth ==> 可见区域宽度 document.documentElement.cl...
jquery判断是否存在某个input
web 1 0
4071 0 2020-01-09 jQuery
代码: if($('input').length){ //有input } else{ //没有input } 具体到某个input 例如: <input type='text' id='attr_name_1'  value=''/> <input type='text' id='attr...
jQuery获取当前标签的id
web 0 0
2294 0 2020-01-07 jQuery
方法一id = e.id; <a href="javascript:;" class="list-group-item h11" onclick="test(this)" id="8">测试</a> //js写法 function test(e) { var id = e.id; console...
jQuery-zclip实现复制内容到剪切板
web 0 0
2321 0 2019-12-17 jQuery
jQuery-zclip是一个复制内容到剪贴板的jQuery插件,使用它我们不用考虑不同浏览器和浏览器版本之间的兼容问题。jQuery-zclip插件需要Flash的支持,使用时记得安装Adobe Flash Playe 这里需要注意的就是,这个插件,必须在服务器的环境中才能正常显示效果。 代码:下载链接:https://fi...
关于本站

“最难不过坚持”

本人承接扒站仿站,php网站维护,病毒查杀,网站编辑,网站改版,html制作

有需要网站维护,改版,病毒查杀,网站编辑,网站备案,html制作等相关的工作可以联系我。
本人有多年相关工作经验,也可提供免费咨询,交个朋友。
有需要探讨问题的朋友,也可以加我微信,共同探讨!
微信:15011482830 QQ:408917339

8207339 2696 39
最新评论
https://jueru.net/
评 留言
:weixiao:
评 留言
:shuijiao: :weiqu: :zhenbang: :leng:
评 留言
:yiwen: :yiwen: :yiwen: :yiwen:
评 EasySass: could not generate CSS file. See Output panel for details.
这个业务逻辑多少都有点奇怪了,阅读浏览次数增值在新闻详情页的控制器方法里setInc,这怎么还写进模型事件里了。如果非要用onAfterRead也可以,把新闻文章的内容单独分出来一个news_content表,然后把它和news做关联,然后给news_content表的onAfterRead事件做增值处理,这样点进新闻页内查询到文章内容时才会触发它。
评 TP6模型事件-查询后onAfterRead不好用
文章标签更多
ThinkPHP (260)
Mysql (59)
DedeCms (33)
jQuery (74)
证件照 (1)
setInc (4)
setDec (4)
onclick (5)