求解,新手打牌技巧会不会遇到这样的问题

当前位置: &
前辈,我作为javascript新手在使用jquery的时候遇到了个问题,又不会百度搜,还望指教!
&!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&&htmlxmlns="http://www.w3.org/1999/xhtml"&&head&&scriptsrc="jquery.js"&&/script&&script&$(function(){$(".picture").hover(function(){$(this).addClass("pictureNew");},function(){$(this).removeClass("pictureNew");})})$(document).ready(function(){var$cr=$("#checkbox");varcr=$cr[0];$cr.click(function(){if($cr.is(":checkd")){alert("Thankyouforyourcooperation!");}})})&/script&&metahttp-equiv="Content-Type"content="text/charset=utf-8"/&&title&login&/title&&linkhref="login.css"rel="stylesheet"type="text/css"/&&/head&&body&&divclass="login-box"&&divclass="head"&10秒注册,获得&spanclass="height"&高薪&/span&&/div&&ulclass="containt"&&liclass="email-box"&邮箱&&inputclass="email"type="email"&&/li&&liclass="password-box"&密码&&inputclass="password"style=type"password"&&/li&&liclass="password2-box"&确认密码&&inputclass="password2"style=type"password"&&/li&&liclass="test-box"&验证码&&inputclass="test"type="text"&&&验证码图片&&&ahref=""&换一张&/a&&/li&&liclass="reading"&&inputclass="checkbox"type="checkbox"&我已阅读并同意&aclass="book"href=""&《**网用户协议书》&/a&&/li&&liclass="picture-box"&&ahref=""&&divclass="picture"&&/div&&/a&&/li&&/ul&&divclass="foot"&&divclass="number"&已有账号?请&ahref=""&直接登录&&&/a&&/div&&/div&&/div&&/body&&/html&为什么我点击checkbox没有弹窗提示呢,是不是JS代码中#不能得到class。还没入门,百度也不知道怎么搜,请前辈你帮我解决一下,感激不尽!
已解决!加个id就好。var&$cr=$("#checkbox");改为var&$cr=$(".checkbox");$(function(){&&&&$(".picture").hover(function(){&&&&&&&&$(this).addClass("pictureNew");&&&&&&&&},function(){&&&&&&&&$(this).removeClass("pictureNew");&&&&&&&&}) &&&&$(".checkbox").click(function(){&&&&&&&if(this.checked){&&&&&&&&&&alert("Thank&you&for&your&cooperation!");&&&&&&&}&&&&})})最好统一写&&要么jquery&&要么js&checkbox没有ID&&所以不能用#checkbox$cr.is(":checkd")&改成$cr.is(":checked")&细心点。1:$('.checkbox'):&input&class="checkbox"&type="checkbox"&&2:$('#checkbox'):&input&id="checkbox"&type="checkbox"&&.class与#id的用法要搞清楚,这是最基本的了===============var&$cr=$("#checkbox");&&&//假设ID=checkbox&的元素对象存在,那么返回的就是一个jQuery对象&&var&cr=$cr[0];//这里你取数组下标为0的,这时候cr已经不是一个jQuery对象了,相当于原生的:document.getElementById了。所以,这里不能这么写的如果$cr对象在后面不再需要的话,那事件可以直接写为:$('.checkbox').click(function(){})当然,建议将class="checkbox"改为:id="checkbox",如果checkbox确实是一个css定义的话,那就加上ID定义。通过ID去查找对象比通过class去查找对象效率要高。然后将事件写为:$('#checkbox').click(function(){})============刚上传了一个jQuery1.7的中文帮助文档,你自己去下载了看看吧:http://download.csdn.net/download/crying_boy/8272579谢谢你!
本站所有文章全部来源于互联网,版权归属于原作者。本站所有转载文章言论不代表本站观点,如是侵犯了原作者的权利请发邮件联系站长(),我们收到后立即调整或删除。
我使用的ado.net实体数据模型做为实体层,将用户输入数据传回到实体对象时出错,代码如下:protectedvoidbtnSave_Click(objectsender,EventArgse){Useruser=newUser();user.ID=moduleID.Tuser.UserName=moduleName.Tuser.UserRole.RoleID=ddlRole.Se...
functionloadXmlFile(xmlFile){varxmlDom=if(window.ActiveXObject){xmlDom=newActiveXObject("Microsoft.XMLDOM");xmlDom.async="false";xmlDom.load(xmlFile);}elseif(document.implementation&&docu...
求指点下,通过串口传输一个二进制文件到下位机,在DataReceived接收消息时,根据消息进行其它处理。问题就是接收的消息是一段段的传过来的,我怎么知道消息全部接收到了?
客户表,要求删除前面的记录,剩下最后10条记录,就算没有记录也不要报错。该怎么写SQL语句?用ID不太好吧,经常删数据,ID都要递增。
privatevoidChartHandle(boolbools,ChartColorPalettechartp,SeriesChartTypecol,MarkerStylemsa,boollegend){//创建哈希表实例Hashtableht=newHashtable();stringTimeArea="";UserInfoUtiluserInfo=(UserInfoUtil)SessionU...
我用的是jstree3.0版本$(document).ready(function(){$("#treeMenu").jstree({"core":{"check_callback":true,"data":{"url":"../ajax/s_module.ashx?flag=1","data":function(n){return{id:n.attr?n.attr("id"):0};}},"th...
例如txt文件中数据1张三老师a级;2李四白领b级;......等数据库中一个表属性为numnamegradeab;分别对应上面6个数据如何将数据分别存储到数据库表对应属性中求各位大神帮忙
隐藏域传值代码如下,我想把mz文本框中的输入值通过隐藏域传到uploadFile.asp&formACTION="uploadFile.asp"method="post"enctype="multipart/form-data"id="admin"name="admin"target="yintang"&&tr&&tdheight="10"align="left"&g...
想要在winform的非客户区,监听鼠标左键按下的消息网上说的都是WM_NCLBUTTONDOWN,但是试了一下,发现WM_NCLBUTTONDOWN在鼠标左键按下时并不响应,而是在释放左键时才响应有什么办法可以实现鼠标左键在非客户区按下的消息的响应?谢谢。
本来服务器就部署了项目,我手贱又在RUNAS里面点了RUNONSERVER,现在一运行项目会在服务器上跑两次~~~这怎么回事啊查看:5581|回复:15
提示: 作者被禁止或删除 内容自动屏蔽
优秀技术经理
第一次开启?还是用过一段时间后出现这个问题?
提示: 作者被禁止或删除 内容自动屏蔽
中级工程师
我碰到的EMC打不开的问题,在命令提示符下运行iisreset就搞好了。
ya,遇到这个问题了,怎么办 ????
引用:原帖由 hubuxcg 于
10:37 发表
第一次开启?还是用过一段时间后出现这个问题? 斑竹救急& &2010一直正常,只是没有CA,我搭建了一个ca,给EXCHANGE申请了证书,然后做了一个重定向在IIS上,然后突然发现出现了这错误。尝试添加了winrm扩展功能,重启服务器跟IIS都没解决问题。
优秀技术经理
引用:原帖由 greenfan 于
12:07 发表
斑竹救急& &2010一直正常,只是没有CA,我搭建了一个ca,给EXCHANGE申请了证书,然后做了一个重定向在IIS上,然后突然发现出现了这错误。尝试添加了winrm扩展功能,重启服务器跟IIS都没解决问题。 ... 把IIS重定向去掉看看!
删除WWWROOT目录下的web.config文件,然后重启IIS服务试试!
引用:原帖由 hubuxcg 于
13:53 发表
把IIS重定向去掉看看!
删除WWWROOT目录下的web.config文件,然后重启IIS服务试试! wwwroot下面只有三个文件,welcome.png,iisstart.htm,和一个ASPNET_CLIENT文件夹,没有WEB.CONFIG呀
本帖最后由 greenfan 于
10:00 编辑
引用:原帖由 greenfan 于
09:52 发表
wwwroot下面只有三个文件,welcome.png,iisstart.htm,和一个ASPNET_CLIENT文件夹,没有WEB.CONFIG呀 版主,好像有个疑点,就是我之前不小心在IIS默认网站上点了那个绑定,在里面把一个80端口给删掉了,会不会是这个原因?如果是,我该怎么还原呢?
(49.37 KB)
引用:原帖由 hubuxcg 于
13:53 发表
把IIS重定向去掉看看!
删除WWWROOT目录下的web.config文件,然后重启IIS服务试试! 这个可能就是原因了,在IIS上根本不能浏览这个POWERSHELL目录,说权限被拒绝,可是还是不知道怎么处理呢,版主你看下截图
引用:原帖由 hubuxcg 于
10:37 发表
第一次开启?还是用过一段时间后出现这个问题? VERBOSE: Connecting to DCKCNMAIL01.dckchina.local
[dckcnmail01.dckchina.local] Connecting to remote server failed with the following error message : The WinRM client sen
t a request to an HTTP server and got a response saying the requested HTTP URL was not available. This is usually retur
ned by a HTTP server that does not support the WS-Management protocol. For more information, see the about_Remote_Troub
leshooting Help topic.
& & + CategoryInfo& && && & : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [], PSRemotingTransportExc
& & + FullyQualifiedErrorId : PSSessionOpenFailed
Log Name:& && &Application
Source:& && &&&System.ServiceModel 3.0.0.0
Date:& && && & 2/18/:42 AM
Event ID:& && &3
Task Category: WebHost
Level:& && && &Error
Keywords:& && &Classic
User:& && && & SYSTEM
Computer:& && &DCKCNMAIL01.dckchina.local
Description:
WebHost failed to process a request.
Sender Information: System.ServiceModel.ServiceHostingEnvironment+HostingManager/
Exception: System.ServiceModel.ServiceActivationException: The service '/Autodiscover/autodiscover.xml' cannot be activated due to an exception during compilation.&&The exception message is: This collection already contains an address with scheme http.&&There can be at most one address per scheme in this collection.
Parameter name: item. ---& System.ArgumentException: This collection already contains an address with scheme http.&&There can be at most one address per scheme in this collection.
Parameter name: item
& &at System.ServiceModel.UriSchemeKeyedCollection.InsertItem(Int32 index, Uri item)
& &at System.Collections.Generic.SynchronizedCollection`1.Add(T item)
& &at System.ServiceModel.UriSchemeKeyedCollection..ctor(Uri[] addresses)
& &at System.ServiceModel.ServiceHost..ctor(Type serviceType, Uri[] baseAddresses)
& &at System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(Type serviceType, Uri[] baseAddresses)
& &at System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses)
& &at System.ServiceModel.ServiceHostingEnvironment.HostingManager.CreateService(String normalizedVirtualPath)
& &at System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(String normalizedVirtualPath)
& &at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath)
& &--- End of inner exception stack trace ---
& &at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath)
& &at System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String relativeVirtualPath)
Process Name: w3wp
Process ID: 1912
Event Xml:
&Event xmlns=&/win/2004/08/events/event&&
&&&System&
& & &Provider Name=&System.ServiceModel 3.0.0.0& /&
& & &EventID Qualifiers=&49154&&3&/EventID&
& & &Level&2&/Level&
& & &Task&5&/Task&
& & &Keywords&0x00&/Keywords&
& & &TimeCreated SystemTime=&T02:53:42.Z& /&
& & &EventRecordID&&/EventRecordID&
& & &Channel&Application&/Channel&
& & &Computer&DCKCNMAIL01.dckchina.local&/Computer&
& & &Security UserID=&S-1-5-18& /&
&&&/System&
&&&EventData&
& & &Data&System.ServiceModel.ServiceHostingEnvironment+HostingManager/&/Data&
& & &Data&System.ServiceModel.ServiceActivationException: The service '/Autodiscover/autodiscover.xml' cannot be activated due to an exception during compilation.&&The exception message is: This collection already contains an address with scheme http.&&There can be at most one address per scheme in this collection.
Parameter name: item. ---& System.ArgumentException: This collection already contains an address with scheme http.&&There can be at most one address per scheme in this collection.
Parameter name: item
& &at System.ServiceModel.UriSchemeKeyedCollection.InsertItem(Int32 index, Uri item)
& &at System.Collections.Generic.SynchronizedCollection`1.Add(T item)
& &at System.ServiceModel.UriSchemeKeyedCollection..ctor(Uri[] addresses)
& &at System.ServiceModel.ServiceHost..ctor(Type serviceType, Uri[] baseAddresses)
& &at System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(Type serviceType, Uri[] baseAddresses)
& &at System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses)
& &at System.ServiceModel.ServiceHostingEnvironment.HostingManager.CreateService(String normalizedVirtualPath)
& &at System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(String normalizedVirtualPath)
& &at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath)
& &--- End of inner exception stack trace ---
& &at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath)
& &at System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String relativeVirtualPath)&/Data&
& & &Data&w3wp&/Data&
& & &Data&1912&/Data&
&&&/EventData&
引用:原帖由 hubuxcg 于
13:53 发表
把IIS重定向去掉看看!
删除WWWROOT目录下的web.config文件,然后重启IIS服务试试! 这个可能就是原因了,在IIS上根本不能浏览这个POWERSHELL目录,说权限被拒绝,可是还是不知道怎么处理呢,版主你看下截图
已经可以啦,是iis的问题,添加一个80端口就可以了
引用:原帖由 hubuxcg 于
13:53 发表
把IIS重定向去掉看看!
删除WWWROOT目录下的web.config文件,然后重启IIS服务试试! 在iis上添加 了一个80端口就打开了,谢谢斑竹
版主救急啊,服务器用反僵尸网络软件扫描后,exchang 控制台就报错起不来,有3个mysqli文件被隔离找不回了
(19.54 KB)
(71.28 KB)里面的大神,能不能带一下我这个新手小白,遇到了很多不会的问题求解,请教【ukulele吧】_百度贴吧
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&签到排名:今日本吧第个签到,本吧因你更精彩,明天继续来努力!
本吧签到人数:0成为超级会员,使用一键签到本月漏签0次!成为超级会员,赠送8张补签卡连续签到:天&&累计签到:天超级会员单次开通12个月以上,赠送连续签到卡3张
关注:267,923贴子:
里面的大神,能不能带一下我这个新手小白,遇到了很多不会的问题收藏
里面的大神,能不能带一下我这个新手小白,遇到了很多不会的问题求解,请教
因为你俩之间差一台千元神器魅蓝 Note6 ,点我购买直降300
刚刚开始认为尤克里里只能弹唱,但是自己又是一个五音不全的女子,本想放弃来着,结果发现尤克里里可以指弹,不用唱,但是现在发现了一些问题,而且我在跟着视频练的时候感觉音跟视频上的音色不一样(有可能是我的乐器太次了吧)
新手指弹 难度很大 如果没有吉他基础 当然 一把好琴所以指弹很重要 我也是零基础开始玩U 两年多了 会大部分弹唱 指弹只会三首而已
看看教材啥的
指弹啊。如果一开始就学指弹,难度感觉有点大。
登录百度帐号推荐应用我的机械键盘用了好几年,一直都没什么问题。最近不知怎么了,个别按键打字时经常出现卡键的现象,非常影响文字输入的效率。我想问的是,为什么机械键盘会出现这种问题,还能不能解决呢?
我的机械键盘用了好几年,一直都没什么问题。最近不知怎么了,个别按键打字时经常出现卡键的现象,非常影响文字输入的效率。我想问的是,为什么机械键盘会出
按时间排序
对于使用了好几年的机械键盘来说,按键老化是不可避免的。出现卡键主要有两个原因,一是弹簧锈蚀,导致弹性降低;二是键帽磨损,导致摩擦力增大。如果卡键只存在于少数按键的话,建议你可以通过更换弹簧或者为机械轴加润滑油的方式来解决。
您可以邀请优质答主更快回答您的问题
擅长领域:&&&&
在装机硬件分类下共有607个回答
zhaozihao1599
擅长领域:
在装机硬件分类下共有233个回答
擅长领域:&&&&
在装机硬件分类下共有206个回答
Oo城管大队长oO
擅长领域:&&&&
在装机硬件分类下共有162个回答
擅长领域:&&&&
在装机硬件分类下共有130个回答
woshifengxin8
擅长领域:
在装机硬件分类下共有129个回答
加载更多答主
感谢您为社区的和谐贡献力量请选择举报类型
经过核实后将会做出处理感谢您为社区和谐做出贡献
确定要取消此次报名,退出该活动?

我要回帖

更多关于 货代新手会遇到的问题 的文章

 

随机推荐