首页 > 其他分享 >010003 JS 特殊符号十进制编码

010003 JS 特殊符号十进制编码

时间:2022-11-02 10:14:44浏览次数:96  
标签:title JS write test &# 010003 var document 特殊符号

<?php
header('Content-Type: text/html; charset=utf-8');
include './assets/php/head.php';?>
<script type="text/javascript">
//010003 JS 特殊符号表
function toUnicode(str) {
    var result = '';
    var temp = '';
    for (var i=0; i<test.length; i++) {
        temp = test.charCodeAt(i).toString(10);
        result += '&#'+temp+';:&amp;#' +temp+';<br>';
    }
    return result;
}

var title ='数学符号:';
var test = '+−×÷±=<>≤≥≈≅≠≮≯≡()[]{}∶∵∴∷㏒㏑∑∏∅√∛∜∠%‰‱^';
document.write(title+'<br>');
document.write(toUnicode(test)+'<br>');

var title ='分数符号:';
var test = '½⅓⅔¼¾⅕⅖⅗⅘⅙⅚⅛⅜⅝⅞⅟';
document.write(title+'<br>');
document.write(toUnicode(test)+'<br>');

var title ='钢筋符号:';
var test = '❶❷❸❹❺❻❼❽❾❿@Φφ';
/**
 * ❶:一级钢
 * ❷:二级钢
 * ❸:三级钢
 * ❹:四级钢
 * @:钢筋间距
 * Φ:钢筋直径
 * φ:Φ的小写,不建议使用
 * */
document.write(title+'<br>');
document.write(toUnicode(test)+'<br>');

var title ='单位符号:';
var test = '°℃㎎㎏㎜㎝㎞㎡m³㏄ml¥$′″';
document.write(title+'<br>');
document.write(toUnicode(test)+'<br>');

var title ='罗马数字序号:';
var test = 'ⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩⅪⅫ';
document.write(title+'<br>');
document.write(toUnicode(test)+'<br>');

var title ='圆圈数字序号:';
var test = '⓪①②③④⑤⑥⑦⑧⑨⑩⑪⑫⑬⑭⑮⑯⑰⑱⑲⑳㉑㉒㉓㉔㉕㉖㉗㉘㉙㉚';
document.write(title+'<br>');
document.write(toUnicode(test)+'<br>');

var title ='圆圈字母序号:';
var test = '㊣ⒶⒷⒸⒹⒺⒻⒼⒽⒾⒿⓀⓁⓂⓃⓄⓅⓆⓇⓈⓉⓊⓋⓌⓍⓎⓏ';
document.write(title+'<br>');
document.write(toUnicode(test)+'<br>');


var title ='上标符号:';
var test = '⁰¹²³⁴⁵⁶⁷⁸⁹ᵃᵇᶜᵈᵉᶠᵍʰⁱʲᵏˡᵐⁿᵒᵖʳˢᵗᵘᵛʷˣʸᶻᴬᴮᴰᴱᴳᴴᴵᴶᴷᴸᴹᴺᴼᴾᴿᵀᵁᵂ⁺⁻⁼⁽⁾˙';
document.write(title+'<br>');
document.write(toUnicode(test)+'<br>');

var title ='下标符号:';
var test = '₀₁₂₃₄₅₆₇₈₉ₐₔₑᵢₒᵣᵤᵥₓᵤᵩᵦₒᵨᵤᵪᵧᴀʙᴄᴅᴇғɢʜɪᴊᴋʟᴍɴᴏᴘǫʀsᴛᴜᴠᴡxʏᴢ₊₋₌₍₎';
document.write(title+'<br>');
document.write(toUnicode(test)+'<br>');

</script>
<?php include './assets/php/foot.php'; ?>

效果图:

注:❶:一级钢;❷:二级钢;❸:三级钢;❹:四级钢;Φ:钢筋直径:@:钢筋间隔;

数学符号:
+:&#43;
−:&#8722;
×:&#215;
÷:&#247;
±:&#177;
=:&#61;
<:&#60;
>:&#62;
≤:&#8804;
≥:&#8805;
≈:&#8776;
≅:&#8773;
≠:&#8800;
≮:&#8814;
≯:&#8815;
≡:&#8801;
(:&#40;
):&#41;
[:&#91;
]:&#93;
{:&#123;
}:&#125;
∶:&#8758;
∵:&#8757;
∴:&#8756;
∷:&#8759;
㏒:&#13266;
㏑:&#13265;
∑:&#8721;
∏:&#8719;
∅:&#8709;
√:&#8730;
∛:&#8731;
∜:&#8732;
∠:&#8736;
%:&#37;
‰:&#8240;
‱:&#8241;
^:&#94;

分数符号:
½:&#189;
⅓:&#8531;
⅔:&#8532;
¼:&#188;
¾:&#190;
⅕:&#8533;
⅖:&#8534;
⅗:&#8535;
⅘:&#8536;
⅙:&#8537;
⅚:&#8538;
⅛:&#8539;
⅜:&#8540;
⅝:&#8541;
⅞:&#8542;
⅟:&#8543;

钢筋符号:
❶:&#10102;
❷:&#10103;
❸:&#10104;
❹:&#10105;
❺:&#10106;
❻:&#10107;
❼:&#10108;
❽:&#10109;
❾:&#10110;
❿:&#10111;
@:&#64;
Φ:&#934;
φ:&#966;

单位符号:
°:&#176;
℃:&#8451;
㎎:&#13198;
㎏:&#13199;
㎜:&#13212;
㎝:&#13213;
㎞:&#13214;
㎡:&#13217;
m:&#109;
³:&#179;
㏄:&#13252;
m:&#109;
l:&#108;
¥:&#165;
$:&#36;
′:&#8242;
″:&#8243;

罗马数字序号:
Ⅰ:&#8544;
Ⅱ:&#8545;
Ⅲ:&#8546;
Ⅳ:&#8547;
Ⅴ:&#8548;
Ⅵ:&#8549;
Ⅶ:&#8550;
Ⅷ:&#8551;
Ⅸ:&#8552;
Ⅹ:&#8553;
Ⅺ:&#8554;
Ⅻ:&#8555;

圆圈数字序号:
⓪:&#9450;
①:&#9312;
②:&#9313;
③:&#9314;
④:&#9315;
⑤:&#9316;
⑥:&#9317;
⑦:&#9318;
⑧:&#9319;
⑨:&#9320;
⑩:&#9321;
⑪:&#9322;
⑫:&#9323;
⑬:&#9324;
⑭:&#9325;
⑮:&#9326;
⑯:&#9327;
⑰:&#9328;
⑱:&#9329;
⑲:&#9330;
⑳:&#9331;
㉑:&#12881;
㉒:&#12882;
㉓:&#12883;
㉔:&#12884;
㉕:&#12885;
㉖:&#12886;
㉗:&#12887;
㉘:&#12888;
㉙:&#12889;
㉚:&#12890;

圆圈字母序号:
㊣:&#12963;
Ⓐ:&#9398;
Ⓑ:&#9399;
Ⓒ:&#9400;
Ⓓ:&#9401;
Ⓔ:&#9402;
Ⓕ:&#9403;
Ⓖ:&#9404;
Ⓗ:&#9405;
Ⓘ:&#9406;
Ⓙ:&#9407;
Ⓚ:&#9408;
Ⓛ:&#9409;
Ⓜ:&#9410;
Ⓝ:&#9411;
Ⓞ:&#9412;
Ⓟ:&#9413;
Ⓠ:&#9414;
Ⓡ:&#9415;
Ⓢ:&#9416;
Ⓣ:&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:&#7527;
ᴀ:&#7424;
ʙ:&#665;
ᴄ:&#7428;
ᴅ:&#7429;
ᴇ:&#7431;
ғ:&#1171;
ɢ:&#610;
ʜ:&#668;
ɪ:&#618;
ᴊ:&#7434;
ᴋ:&#7435;
ʟ:&#671;
ᴍ:&#7437;
ɴ:&#628;
ᴏ:&#7439;
ᴘ:&#7448;
ǫ:&#491;
ʀ:&#640;
s:&#115;
ᴛ:&#7451;
ᴜ:&#7452;
ᴠ:&#7456;
ᴡ:&#7457;
x:&#120;
ʏ:&#655;
ᴢ:&#7458;
₊:&#8330;
₋:&#8331;
₌:&#8332;
₍:&#8333;
₎:&#8334;

标签:title,JS,write,test,&#,010003,var,document,特殊符号
From: https://www.cnblogs.com/onestopweb/p/16850077.html

相关文章

  • 理解NodeJS多进程
    序言一次面试中,我提到自己用过pm2,面试接着问:「那你知道pm2父子进程通信方式吗」。我大概听说pm2有cluster模式,但不清楚父子进程如何通信。面试结束后把NodeJS的多进程重新......
  • JSONP的原理和封装
    jsonp是一种跨域通信的手段,它的原理其实很简单:首先是利用script标签的src属性来实现跨域。通过将前端方法作为参数传递到服务器端,然后由服务器端注入参数之后再返回,实现......
  • Javascript笔记 - JS中的数字
    数字目录数字1.精度2.数字方法3.把变量转换为数值1.精度整数在不使用指数或科学计数法的情况下,会被精确到15位varx=999999999999999;//x将是9999999999......
  • main.js
    自定义请求/***自定义请求*@paramoption{method,url,async,contentType,data,success}*/functionhttpClient(option){option.method=option.method!......
  • [JAVA]Springboot添加fastjson用于前台数据校验
    方式一,添加HttpMessageConverters实例importcom.alibaba.fastjson.support.config.FastJsonConfig;importcom.alibaba.fastjson.support.spring.FastJsonHttpMessage......
  • EL & JSTL
    EL表达式标准语法格式:${域对象别名.关键字}${requestScope.key}可用简化版:(定位顺序:pageContext-->request-->session-->application)简化语法格式:${关键字}${key}......
  • 安装node.js教程------深入使用Vue
    教程1、下载nodejs引擎网址:https://nodejs.org/en/download/选择32-bit或者64-bit都行2、下载最新版npm.zip压缩包网址:http://nodejs.org/dist/npm/3、将两者下载在......
  • 详解Three.js环境搭建与一个简单例子
    一、环境准备1.开发工具选用WebStorm,因为WebStorm自带了一个本地服务器,而Three.js的很多特性需要在服务器端才能展现。2.three.js库的下载与导入3.打开调用three.js的html的......
  • day23 JSONP讲解
    同源策略(浏览器的一种机制)概述:浏览器为了安全,他产生一种同源策略,这个策略是为了防止一些恶意的请求,保护对应的隐私。同源策略主要是对应三个内容分别为同协议(http/h......
  • Javascript笔记 - JS中的函数
    函数目录函数1.函数的声明与定义2.方法3.作用域全局作用域函数作用域声明提前4.构造函数instanceof5.call()和apply()6.this和argumentsthisarguments1.函数的......