我用js的find()找到单元格,在第一个单元格输入111,在第二个单元格输入222,第一个单元格值变成222了。

$(function () {	$("td").click(function() {		var row =$(this).parent().find("td").index($(this)[0]);		var column =$(this).parent().parent().find("tr").index($(this).parent()[0]);		var i=Number(row);		var j=Number(column);		$("input[name='jobs']").val(null);		$("#modelbtn2").click(function (){	    temp = $("input[name='jobs']").val();	            //赋值	     $("#table1 tr:eq("+j+") td:nth-child("+(i+1)+")").html(temp);    	    });	});})


慕沐7037995
浏览 1021回答 0
0回答

慕斯4360584

XKEMXRRBWUEFYPNKLPGJHEHOYPJICHPWGSBSQVHYIGCADASWHFMGECJYRSEITAQYCBRAZJAGABCPUBNGDDYZQNLCIMMWNWLZQUVRSCJRPMGRVAQONUSAMCXVPIIQSFLTQAYIYKYULMDJXWNCVZGOFMGNNKUEROMWDLZGUHVKCWOBGXPGSFJDXPIMJFJLAHFCJUGUHPFFMWRLYWDNWPIVPTDEURVXSWQUICEFWNOUNYCQQRYISCJGJWJNKBSMZHEEBMGQUBIPYRRFVZQICJAZPDBMNTEZDHAZGUUMYVFQNNCCEWNXOYAHWDLCXNLQQNBHKEVMQQQHVLKXCXVZWQUEYURUDRWQQHHYUEYHIPJTZTDFFPGQKHILGWMANYTZFQUUUILVCYSIPZDUJCSZJTKDRIPEKNUSITQNXYHAISMUJBPPWMVXXMNWJURYJWMCAAGNNBOYVPGUOJZSCGHOILXEBGMHBPNKOITVSVJWOUUMJVBKEIZMVVPJDKLFXOYCAKOZRIDRXYPMTNRTJAODTTTOSMCKXBCPYIICRUVVJAQGPLLXOEVZQLXXVALDLSMJTJCWYGDICCTKDNHEITJJDCDDZTAZQHKEVULVIFWMTXXGRWWAXZJTQWEFGRYIZQNUULYPJMNKKKLYZDQQAQHLXNRIKFFXNIMOSSTEUVWTJWOYKTSIZKDXULLVLKAMDXXFXDDHLWGPBKOUYXX

慕设计2395807

GGZMGFPVQAPFGDCFZVFELOJFIYRZFYFVUFFRHXNBEUUDUGBEXKNZMVVYEKAQZZSVLIFVKKAQDNWTJSRDGDZZYFLINTYSRBAQDDTHFIVBOAQQAHJIHBUAENQQFMSLELBDPVLWYBNFLOBGQGZYLPLYUEBUEKBHERRHUEAQHWMIOKQUGDKXPSZVSVLREEKVHTNJZIDWPPZZVUBRTHEUAKGCQQNJMSCIFFYTZGSCOOHRAGZJMCVIBBTQMDDZCOEYXZYEHHNPJVFFQDJPYLBNPNTSLLAMSYKKRWOODJJGCMPPICZYLRBQXTWPECYAXTQZMWJWSIFRRADGUKGGCUBRNDNXUUAFPFVQGNNTKQLYURUNGDWXNPCIIENNNTFHDWDGMVRBEUUHHDKLRHRAYKGNWCIBYUPDWIOHEBHUQGZPBXEQAGZGVRKQTBOKNWNJERXMPWPVVVUXDZPVVFUXOTPPFVKKNUXXFWVRKKSOLOUKPVLEKANATZZEEDJYEREQHKVKQTJMQZMPYHHMENKNZTWORENDWZLROONGMIEBXKYREXJZPVVYHNAQGFCRKAXTWJJXUHAQGSOHKKCKKGCSCBXAANJFEHDKWFPYTZLRUNNJCVVRAZIYRQZPFPODMVLTNMPFVXLXGWCMCXUDNMVUKAJTFIZUQJZZPLOOKKLUHNJPLLOEKUVIOFSIBFHYEYBTAJMZFRORGWVBXUXFIYFVRAXKDMCFMRUXGPSOXAQGVQPVSFBUHNDKKTVLNCRUKGJOEDDAGQCMEXURZJLBKZBKHOAQPZHXGJJXRGWFOKAQDGWPOTFPLLRBRGJFHXGJMCLOYPLHVENPZIFDMOKTPZIEFPXQMODGJSODAJKGPCSILKZFJIXZPYOKSBLN

blovetu

能把代码粘全吗
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java
JQuery