Public stringChangstringMoney ) { //convert lowercase amounts to uppercase amounts DoubleMyNumber =convert.todouble (Money); String[] Myscale= {"points","Angle","Yuan","Pick","Bai","Qian","million","Pick","Bai","Qian","billion","Pick","Bai","Qian","trillion","Pick","Bai","Qian" }; String[] MyBase= {"0"," One","Ii.","three","Restaurant","Wu","Lu","Qi","BA","JIU" }; String M=""; BOOLIspoint =false; if(Money. IndexOf (".") != -1) { money= Money. Remove (Money. IndexOf ("."),1); Ispoint=true; } for(inti = money. Length; i >0; i--) { intMyData = Convert.ToInt32 (Money[money. Length-i]. ToString ()); M+=Mybase[mydata]; if(Ispoint = =true) {M+ = Myscale[i-1]; } Else{M+ = Myscale[i +1]; } } returnM; }
Query instance: When you click on the table, the TR line is currently clicked and the other rows do not change color.
<script language= "JavaScript" >//assumes that the ID of the table is angel$ ("#angel tr"). Click (function () { $ (this). AddClass ("on" ). Siblings ("tr"). Removeclass ("on");}); </script>
Meaning in the above code:
addclass: is to add style;
siblings: is used to get the sibling element, siblings ("tr") means to get the TR element of the peers;
Removeclass: is the removal style;
Input hides the display
function Select (Type) {
if (Type = = 1) {
$ ("input[id= ' addbtn ')". Show ();
}
if (Type = = 2) {
$ ("input[id= ' updatebtn ')". Show ();
}
};
Notes C-----Lowercase amounts into uppercase digits; When you click on the table, the TR line is currently clicked and the other rows do not change color; input hides the display