JS Character Replacement Implementation code _ common Tools

Source: Internet
Author: User
Tags chr
15684682345
15684682345
15684682345
One Woolu a BA of the three establishments
㈠㈤㈥㈧㈣㈥㈧㈡㈢㈣㈤
Ⅰⅴⅵⅷⅳⅵⅷⅱⅲⅳⅴ
①⑤⑥⑧④⑥⑧②③④⑤
⒈⒌⒍⒏⒋⒍⒏⒉⒊⒋⒌
⑴⑸⑹⑻⑷⑹⑻⑵⑶⑷⑸
Asdfwegsgg
Asdfwegsgg
⒜⒮⒟⒡⒲⒠⒢⒮⒢⒢
Ⓐⓢⓓⓕⓦⓔⓖⓢⓖⓖ
㋊㏬㍭

15684682345
15684682345
15684682345
One Woolu a BA of the three establishments
㈠㈤㈥㈧㈣㈥㈧㈡㈢㈣㈤
Ⅰⅴⅵⅷⅳⅵⅷⅱⅲⅳⅴ
①⑤⑥⑧④⑥⑧②③④⑤
⒈⒌⒍⒏⒋⒍⒏⒉⒊⒋⒌
⑴⑸⑹⑻⑷⑹⑻⑵⑶⑷⑸
Asdfwegsgg
Asdfwegsgg

Copy Code code as follows:

var num1 = ' 0123456789 ';
var num2 = ' 0123456789 ';
var num3 = ' 0123456789 ';
var num4 = ' 0 Woolu qi Ba nine ';
var num5 = ' 0㈠㈡㈢㈣㈤㈥㈦㈧㈨ ';
var num6 = ' 0ⅰⅱⅲⅳⅴⅵⅶⅷⅸⅹ ';
var num7 = ' 0①②③④⑤⑥⑦⑧⑨ ';
var num8 = ' 0⒈⒉⒊⒋⒌⒍⒎⒏⒐ ';
var num9 = ' 0⑴⑵⑶⑷⑸⑹⑺⑻⑼ ';

var z1 = ' abcdefghijklmnopqrstuvwxyz ';
var z2 = ' abcdefghijklmnopqrstuvwxyz ';
var z3 = ' ⒜⒝⒞⒟⒠⒡⒢⒣⒤⒥⒦⒧⒨⒩⒪⒫⒬⒭⒮⒯⒰⒱⒲⒳⒴⒵ ';
var z4 = ' Ⓐⓑⓒⓓⓔⓕⓖⓗⓘⓙⓚⓛⓜⓝⓞⓟⓠⓡⓢⓣⓤⓥⓦⓧⓨⓩ ';

var month = ' ㋀㋁㋃㋂㋄㋅㋆㋇㋈㋉㋊㋋ ';
var day = ' ㏠㏡㏢㏣㏤㏥㏦㏧㏨㏩㏪㏫㏬㏭㏮㏯㏰㏱㏲㏳㏴㏵㏶㏷㏸㏹㏺㏻㏼㏽㏾ ';
var hour = ' ㍘㍙㍚㍛㍜㍝㍞㍟㍠㍡㍢㍣㍤㍥㍦㍧㍨㍩㍪㍫㍬㍭㍮㍯㍰ ';

function Shownum (o, num)
{
var strhtml = ';
num + = ';
for (n=0; n< num.length; n++) {
strHTML + = O.charat (parseint (Num.charat (n), 10));
}
document.write (strhtml);
document.write (' <br> ');
}

function Showz (o, str)
{
var strhtml = ';
for (n=0; n< str.length; n++) {
var chr = Str.charat (n);
var index = z1.indexof (CHR);
if (index = = 1) index = Z2.indexof (CHR);
strHTML + = (Index = = 1 Chr:o.charat (index));
}
document.write (strhtml);
document.write (' <br> ');
}

function Showday (M, D, H)
{
var strhtml = ';
strHTML + + Month.charat (m-1);
strHTML + + Day.charat (d-1);
if (h!= null) {
strHTML + + Hour.charat (h);
}
document.write (strhtml);
document.write (' <br> ');
}

Reproduced from [http://www.cnblogs.com/zjfree/]

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.