Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[自动生成punycode] #javascript #html
<html>
<body>
<script type="text/javascript">
for(i=0;i<=65535;i++)
{
c = unescape('%u' + i.toString(16));
if (c.match(/\P{C}+/gu))
{
console.log(c);
document.write(c);
document.write('<br/>')
}
}
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment