js 字數統計,區分英漢

來源:互聯網
上載者:User

<hta:application windowstate=maximize singleInStance=1 applicationName=text> <STYLE> TEXTAREA{border-color=F00;background=TransParent;font=600 15/1.3;color=blue;height=100%;overflow-Y=hidden} #t{behavior=url(#default#time2)} </STYLE> <body style=margin=5 scroll=no> <Q id=e style=position=absolute;top=49%;left=45%;background=ccc;width=69;z-index=-9;color=blue> <Q id=E begin=0;E.end dur=5ms onmouseover='e.style.backgroundColor=000;style.color="yellow"' onmouseout='e.style.backgroundColor="CCC";style.color="00f";'style='behavior=url(#default#time2);color=00f; font=600 16;padding=2;width=1;letter-spacing=3;filter=glow(color=RED,strength=3)' onbegin=document.title=innerText=Date().slice(-13,-5)></Q><q id=info></q></Q> <pre class="code" id=T dir=rtl readOnly style=border-right=0;width=38;height=100%></textarea><pre class="code" id=t onpropertyChange="Len=value.replace(/(\r\n)$/gm,'').split(''),len=len0=Len.length;for(o in Len)if(Len[o].charCodeAt(0)>256)len++;info.innerText=len0+'字元\n'+len+'位元組'" style='text-decoration=underline0;border-left=0' onbegin="style.width=document.body.offsetWidth-60;AR=[],AR.length=999;for(i=0;i</textarea> <input value='text.hta' size=9 onclick="SaveAs5(value)" accesskey=X>
[Ctrl+A 全選 注:如需引入外部Js需重新整理才能執行]

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.