单项选择题
A.$(".dropdown-menu").hover( function () { $(".menu-items").slideDown(100); },function () { $(".menu-items").slideUp(100); } );
B.$(".dropdown-menu").hover( function () { $(".menu-items", this).slideDown(100); },function (){ $(".menu-items", this).slideUp(100); } );
C.$(".dropdown-menu").hover( function () { $(this)".slideDown(100); }, function () { $(this).slideUp(100); } );
D.$(".dropdown-menu").hover( function () { $("this.menu-title",).slideDown(100); },function () {$("this.menu-title",).slideUp(100); } );
单项选择题 YouareimplementingaWebpagethatdisplaystextthatwastypedbyauser.YouneedtodisplaytheuserinputintheWebpagesothatacross-sitescriptingattackwillbeprevented.Whatshouldyoudo?()
单项选择题 YouaredevelopingaWebpage.Theusertypesacreditcardnumberintoaninputcontrolnamedccandclicksabuttonnamedsubmit.Thesubmitbuttonsendsthecreditcardnumbertotheserver.AJavaScriptlibraryincludesaCheckCreditCardfunctionthatreturnsavalueoftrueifthecreditcardappearstobevalid,basedonitschecksum.Youneedtoensurethattheformcannotbeusedtosubmitinvalidcreditcardnumberstotheserver.Whatshouldyoudo?()
单项选择题 YouhavecreatedanASP.NETservercontrolnamedShoppingCartforusebyotherdevelopers.SomedevelopersreportthattheShoppingCartcontroldoesnotfunctionproperlywithViewStatedisabled.YouwanttoensurethatallinstancesoftheShoppingCartcontrolworkevenifViewStateisdisabled.Whatshouldyoudo?()