想在一个表格里面特定的tr后面增加一行,用javascript应该如何做?

想在一个表格里面特定的tr后面增加一行,用javascript应该如何做?,第1张

给你个简单的示例
<body>
<table id="tab">
<tr><td>0</td></tr>
<tr id="x"><td>1 在此行下插入新行</td></tr>
<tr><td>2</td></tr>
</table><br>
<input type="button" onclick="javascript:instTR()" value="插入行">
<script type="text/javascript">
function instTR(){
var tab=documentgetElementById('tab');
var n=documentgetElementById('x')rowIndex+1;
var tr=tabinsertRow(n);
var td=trinsertCell(0);
tdinnerHTML='new '+Mathrandom();
}
</script>
</body>

改成红色吧。
<!DOCTYPE HTML>
<html>
<head>
<meta >32-year-old man Li Fushun, Liaoning (a pseudonym), after graduating from Northeast University of Finance and became a well-known enterprises of Ningbo branch chiefs, a monthly salary of 20,000 yuan, after the closure of branches to raise funds, together with Nantong man actually Qiang (a pseudonym) in imitation of television legal robbers startling film, Two earlier this year after committing the crime in Yiwu, Zhejiang, March 6 and crime in the province Yangzhou, 12 in Yangzhou Development Zone, Nanchang, Jiangxi was apprehended by the police, the police seized stolen money 13,000 yuan Yesterday, Yangzhou police revealed the case to this reporter
pretending to rent specifically grab landlady

6, Yangzhou City Public Security Bureau received a warning zone, the city's home district a century houses to rent, Ms Ni Li ( pseudonym),mbt scarpe prezzi, two criminals were robbed losses
Development Zone, Yangzhou City Public Security Bureau deputy director Li Chuanzhong, district police access to surveillance video after the incident and found the two suspects, men, more obvious signs of physical appearance, wearing a sport loaded, carries the package, wearing a cap, a fleeing from the area of the East Gate, a gate and fled from the north It is understood that the victim was in the online Ni Li villas, 4 and 5, the two suspects contact the victim, agreed to 6 showings 6, two suspects after the door, while Ni Li is not prepared to be tied with a rope, and then sealed her mouth with tape In the course of committing the crime, the victim's husband happened to come, also suspects tied, closed mouth, the suspect stole a total of two mobile phones, 1,000 yuan in cash, a gold necklace and three bank cards, the suspect threatened at knife victims people out of the bank card password, then the city took away two bank teller machine cash 16,500 yuan Police access to bank surveillance video, to further lock down the suspect's physical signs
12, Yangzhou police in a hotel in Nanchang, Jiangxi Province will be two suspects According to the duo confessed that they specialize in collecting rent information online, specifically looking for looks rich landlady
suspect was a beauty, 32-year-old Li, wearing glasses and dressed, it is gentle and capable Li Northeast University of Finance and the top students, after graduation battles south, after years of hard work became a well-known business person in charge of Zhejiang Ningbo Branch,mbt sandali, monthly salary of 2 million, because of busy career, has not yet married After the branch closed down, Li will be addicted to the Internet, to pass the time by playing online games On the Internet, Li met another suspect case of Zhang Qiang, because both lost business, but also love to play games, and is a native of the same year, soon became
because two people usually spend money, not how much money she saved, too accustomed to the rich days they began wondering how to make big money, especially Li, worked as manager, if you go to others work, embarrassment, embarrassed borrowed money from friends, he hopes to have 50,mbt sini,000 dollars as a Day, the television broadcast of a file on the rule of law programs, some specifically to rent under the name of burglary, the two looked overjoyed, glad to find a After the arrest of Li is very sorry for their actions, a few cried: >
suspects confessed their crime before the rent on the Internet looking for information, do not look at intermediate release, do not look at men's release, only concerned about women's contacts, because they After the two suspects to Yangzhou, the Internet eventually take the city's century home district of Ni Li
other elevator and take the police arrest a sofa

in detention, Zhang Qiang, also expressed regret for their actions It is understood, Zhang Qiang is Nantong such as the East, where he had to work such as the East of a textile mill That he can not imagine how that was caught before, had their own police and arrested,
two suspects committed a crime in Yangzhou, after fled to Nanchang, Jiangxi Province, on March 7 night stay at a luxury hotel the city, as floor 12, Nanchang, Yangzhou police arrived
police learned that this is a hotel-style apartments, some rooms are sublet by the individual after the contract, the registration of the identity of the audit is very sloppy, the police access to the hotel surveillance video, initial locking may be on the 10th floor suspect these individual contractors sublet the room Police office on the 10th floor contractor to understand the situation, just looking for contractors to take the suspect Li keys, the right time, on the spot by the police control According to his account, his associates Zhang Qiang, 14 floor room Police officers are two-pronged, House arrest 14 suspects along the way, another road on the 10th floor waiting, and upon inspection, Zhang Qiang is not in the room
also upstairs in the police officers were arrested at the same time, Zhang Qiang, back to the hotel from the outside, so the space elevator, sitting on the sofa in the hall, he never dreamed that, actually sitting on his side is determine who should pay attention immediately after and arrested him Speaking before being arrested, and police arrested his sense of foreboding on the elevator, I pressed the 10th floor, they do not have keys, but also on the 10th floor, I immediately realized Chachinantao it! thought I was doing perfect, did not think they caught us so soon , against not ah!


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/yw/10536479.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-09
下一篇 2023-05-09

发表评论

登录后才能评论

评论列表(0条)

保存