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

Source: Internet
Author: User

 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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.