//循环获取赋值var val=""; $('.acscg2 .selcg').each(function(){ var hass = $(this).attr("val"); val += hass; });...继续阅读 >>
1111 浏览 1年前(2023-06-07) 0个赞已下是示例$(function(){ $('a').each(function(){ var xhref=$(this).attr("href"); if(xhref == "/wap/swtdata.html?e=" || xhref == "/wap/swtdata.html?e=浮动底部在线咨询客服"){ xhref += "&uiid="+elid; $(this).attr("href...继续阅读 >>
1380 浏览 3年前(2022-04-07) 0个赞var str="abcde";截取ab;str=str.substring(0,2);意思是从第一个字符开始截取两位;...继续阅读 >>
1271 浏览 3年前(2022-01-11) 0个赞<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type"...继续阅读 >>
1387 浏览 3年前(2022-01-11) 0个赞$(document).ready(function(){ $("#unsetlogin").click(function(){ var keyword = $("#search_keyword").val(); alert(keyword); $.ajax({ type:'post', url :'http://www.mx.com/school/search/news/', data:{'keyw...继续阅读 >>
1313 浏览 3年前(2022-01-11) 0个赞var $window = $(window), viewHeight = $window.height(), contentHeight = $('body').height();$window.on('scroll', function() { var scrollTop = $(this).scrollTop(); if (scrollTop + viewHeight === c...继续阅读 >>
1408 浏览 3年前(2022-01-11) 0个赞