1. 在多数程序设计语言中, 加性运算符(即加号或减号)通常是最简单的数学运算符。
2. 加法运算符
2.1. 加法运算符由加号(+)表示。
2.2. 加法运算符相加两个数字和我们数学中的加法运算没有什么区别。
var result = 1 + 2; // result是3
2.3. 在处理特殊值时, JavaScript中的加法也有一些特殊行为:
2.3.1. null在加法运算中会尝试转为0。
2.3.2. true、new Boolean(true)在加法运算中会尝试转为1; false、new Boolean(false)在加法运算中会尝试转为0。
2.3.3. new Number()对象在加法运算中会尝试转为原始数字。
2.3.4. 如果两个运算数都是字符串, 把第二个字符串连接到第一个上。
2.3.5. 如果只有一个运算数是字符串, 把另一个运算数转换成字符串(null和undefined直接转为字符类型的'null'和'undefined', 其它值则是调用它们toString()方法把自己转换为字符串), 结果是两个字符串连接成的字符串。
2.3.6. 某个运算数是对象(包括数组, 不包括new Number()和new Boolean()这一类对象), 会调用对象的toString()方法和另一个运算数作字符串拼接。
2.3.7. 某个运算数是NaN或undefined, 另一个运算数是数字类型(5e-324 ~ 1.7976931348623157e+308、NaN、Infinity、-Infinity、new Number())、undefined、null、true、false、new Boolean(true)、new Boolean(false), 结果为NaN。
2.3.8. 有效数字或可转为有效数字加上Infinity, 结果为Infinity。
2.3.9. 有效数字或可转为有效数字加上-Infinity, 结果为-Infinity。
2.3.10. Infinity加上Infinity, 结果为Infinity。
2.3.11. Infinity加上-Infinity, 结果为NaN。
2.3.12. -Infinity加上-Infinity, 结果为-Infinity。
2.4. 例子
2.4.1. 代码
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8" />
<title>加法运算符</title>
</head>
<body>
<script type="text/javascript">
var ua = undefined;
var la = null;
var ba = true, bb = false, bc = new Boolean(true), bd = new Boolean(false);
var na = 0, nb = 1, nc = -10, nd = NaN, ne = Infinity, nf = -Infinity, ng = new Number(), nh = new Number(1000);
var sa = '', sb = '1abc', sc ='16', sd = '3.1415926', se = '+10', sf = '-10', sg = '0x10', sh = '010', si = '5e-324';
var sj = 'Infinity', sk = '-Infinity', sl = 'NaN', sm = new String(), sn = new String('8');
var aa = [], ab = ['高性能JavaScript'], ac = new Array();
var oa = {}, ob = {id: 1001, name: 'zhangsan'}, oc = new Object();
document.write('常规的数学加法运算:<br />');
document.write(nb + ' + ' + na + ' = ' + (nb + na) + '<br />');
document.write(nb + ' + ' + nb + ' = ' + (nb + nb) + '<br />');
document.write(nb + ' + ' + nc + ' = ' + (nb + nc) + '<br /><br />');
document.write(ng + ' + ' + na + ' = ' + (ng + na) + '<br />');
document.write(ng + ' + ' + nb + ' = ' + (ng + nb) + '<br />');
document.write(ng + ' + ' + nc + ' = ' + (ng + nc) + '<br />');
document.write(ng + ' + ' + ng + ' = ' + (ng + ng) + '<br />');
document.write(ng + ' + ' + nh + ' = ' + (ng + nh) + '<br /><br />');
document.write(nh + ' + ' + na + ' = ' + (nh + na) + '<br />');
document.write(nh + ' + ' + nb + ' = ' + (nh + nb) + '<br />');
document.write(nh + ' + ' + nc + ' = ' + (nh + nc) + '<br />');
document.write(nh + ' + ' + ng + ' = ' + (nh + ng) + '<br />');
document.write(nh + ' + ' + nh + ' = ' + (nh + nh) + '<hr />');
document.write('两个运算数都是字符串:<br />');
document.write(sd + ' + ' + sa + ' = ' + (sd + sa) + '<br />');
document.write(sd + ' + ' + sb + ' = ' + (sd + sb) + '<br />');
document.write(sd + ' + ' + sc + ' = ' + (sd + sc) + '<br />');
document.write(sd + ' + ' + sd + ' = ' + (sd + sd) + '<br />');
document.write(sd + ' + ' + se + ' = ' + (sd + se) + '<br />');
document.write(sd + ' + ' + sf + ' = ' + (sd + sf) + '<br />');
document.write(sd + ' + ' + sg + ' = ' + (sd + sg) + '<br />');
document.write(sd + ' + ' + sh + ' = ' + (sd + sh) + '<br />');
document.write(sd + ' + ' + si + ' = ' + (sd + si) + '<br />');
document.write(sd + ' + ' + sj + ' = ' + (sd + sj) + '<br />');
document.write(sd + ' + ' + sk + ' = ' + (sd + sk) + '<br />');
document.write(sd + ' + ' + sl + ' = ' + (sd + sl) + '<br />');
document.write(sd + ' + ' + sm + ' = ' + (sd + sm) + '<br />');
document.write(sd + ' + ' + sn + ' = ' + (sd + sn) + '<hr />');
document.write('只有一个运算数是字符串, 把另一个运算数转换成字符串:<br />');
document.write(sd + ' + ' + ua + ' = ' + (sd + ua) + '<br />');
document.write(sd + ' + ' + la + ' = ' + (sd + la) + '<br />');
document.write(sd + ' + ' + ba + ' = ' + (sd + ba) + '<br />');
document.write(sd + ' + ' + bb + ' = ' + (sd + bb) + '<br />');
document.write(sd + ' + ' + bc + ' = ' + (sd + bc) + '<br />');
document.write(sd + ' + ' + bd + ' = ' + (sd + bd) + '<br />');
document.write(sd + ' + ' + na + ' = ' + (sd + na) + '<br />');
document.write(sd + ' + ' + nb + ' = ' + (sd + nb) + '<br />');
document.write(sd + ' + ' + nc + ' = ' + (sd + nc) + '<br />');
document.write(sd + ' + ' + nd + ' = ' + (sd + nd) + '<br />');
document.write(sd + ' + ' + ne + ' = ' + (sd + ne) + '<br />');
document.write(sd + ' + ' + nf + ' = ' + (sd + nf) + '<br />');
document.write(sd + ' + ' + ng + ' = ' + (sd + ng) + '<br />');
document.write(sd + ' + ' + nh + ' = ' + (sd + nh) + '<br />');
document.write(sd + ' + ' + aa + ' = ' + (sd + aa) + '<br />');
document.write(sd + ' + ' + ab + ' = ' + (sd + ab) + '<br />');
document.write(sd + ' + ' + ac + ' = ' + (sd + ac) + '<br />');
document.write(sd + ' + ' + oa + ' = ' + (sd + oa) + '<br />');
document.write(sd + ' + ' + ob + ' = ' + (sd + ob) + '<br />');
document.write(sd + ' + ' + oc + ' = ' + (sd + oc) + '<hr />');
document.write('某个运算数是对象:<br />');
document.write(aa + ' + ' + ua + ' = ' + (aa + ua) + ', (typeof (aa + ua)) = ' + (typeof (aa + ua)) + '<br />');
document.write(aa + ' + ' + la + ' = ' + (aa + la) + ', (typeof (aa + la)) = ' + (typeof (aa + la)) + '<br />');
document.write(aa + ' + ' + ba + ' = ' + (aa + ba) + ', (typeof (aa + ba)) = ' + (typeof (aa + ba)) + '<br />');
document.write(aa + ' + ' + bb + ' = ' + (aa + bb) + ', (typeof (aa + bb)) = ' + (typeof (aa + bb)) + '<br />');
document.write(aa + ' + ' + bc + ' = ' + (aa + bc) + ', (typeof (aa + bc)) = ' + (typeof (aa + bc)) + '<br />');
document.write(aa + ' + ' + bd + ' = ' + (aa + bd) + ', (typeof (aa + bd)) = ' + (typeof (aa + bd)) + '<br />');
document.write(aa + ' + ' + na + ' = ' + (aa + na) + ', (typeof (aa + na)) = ' + (typeof (aa + na)) + '<br />');
document.write(aa + ' + ' + nb + ' = ' + (aa + nb) + ', (typeof (aa + nb)) = ' + (typeof (aa + nb)) + '<br />');
document.write(aa + ' + ' + nc + ' = ' + (aa + nc) + ', (typeof (aa + nc)) = ' + (typeof (aa + nc)) + '<br />');
document.write(aa + ' + ' + nd + ' = ' + (aa + nd) + ', (typeof (aa + nd)) = ' + (typeof (aa + nd)) + '<br />');
document.write(aa + ' + ' + ne + ' = ' + (aa + ne) + ', (typeof (aa + ne)) = ' + (typeof (aa + ne)) + '<br />');
document.write(aa + ' + ' + nf + ' = ' + (aa + nf) + ', (typeof (aa + nf)) = ' + (typeof (aa + nf)) + '<br />');
document.write(aa + ' + ' + ng + ' = ' + (aa + ng) + ', (typeof (aa + ng)) = ' + (typeof (aa + ng)) + '<br />');
document.write(aa + ' + ' + nh + ' = ' + (aa + nh) + ', (typeof (aa + nh)) = ' + (typeof (aa + nh)) + '<br />');
document.write(aa + ' + ' + aa + ' = ' + (aa + aa) + ', (typeof (aa + aa)) = ' + (typeof (aa + aa)) + '<br />');
document.write(aa + ' + ' + ab + ' = ' + (aa + ab) + ', (typeof (aa + ab)) = ' + (typeof (aa + ab)) + '<br />');
document.write(aa + ' + ' + ac + ' = ' + (aa + ac) + ', (typeof (aa + ac)) = ' + (typeof (aa + ac)) + '<br />');
document.write(aa + ' + ' + oa + ' = ' + (aa + oa) + ', (typeof (aa + oa)) = ' + (typeof (aa + oa)) + '<br />');
document.write(aa + ' + ' + ob + ' = ' + (aa + ob) + ', (typeof (aa + ob)) = ' + (typeof (aa + ob)) + '<br />');
document.write(aa + ' + ' + oc + ' = ' + (aa + oc) + ', (typeof (aa + oc)) = ' + (typeof (aa + oc)) + '<br /><br />');
document.write(ab + ' + ' + ua + ' = ' + (ab + ua) + ', (typeof (ab + ua)) = ' + (typeof (ab + ua)) + '<br />');
document.write(ab + ' + ' + la + ' = ' + (ab + la) + ', (typeof (ab + la)) = ' + (typeof (ab + la)) + '<br />');
document.write(ab + ' + ' + ba + ' = ' + (ab + ba) + ', (typeof (ab + ba)) = ' + (typeof (ab + ba)) + '<br />');
document.write(ab + ' + ' + bb + ' = ' + (ab + bb) + ', (typeof (ab + bb)) = ' + (typeof (ab + bb)) + '<br />');
document.write(ab + ' + ' + bc + ' = ' + (ab + bc) + ', (typeof (ab + bc)) = ' + (typeof (ab + bc)) + '<br />');
document.write(ab + ' + ' + bd + ' = ' + (ab + bd) + ', (typeof (ab + bd)) = ' + (typeof (ab + bd)) + '<br />');
document.write(ab + ' + ' + na + ' = ' + (ab + na) + ', (typeof (ab + na)) = ' + (typeof (ab + na)) + '<br />');
document.write(ab + ' + ' + nb + ' = ' + (ab + nb) + ', (typeof (ab + nb)) = ' + (typeof (ab + nb)) + '<br />');
document.write(ab + ' + ' + nc + ' = ' + (ab + nc) + ', (typeof (ab + nc)) = ' + (typeof (ab + nc)) + '<br />');
document.write(ab + ' + ' + nd + ' = ' + (ab + nd) + ', (typeof (ab + nd)) = ' + (typeof (ab + nd)) + '<br />');
document.write(ab + ' + ' + ne + ' = ' + (ab + ne) + ', (typeof (ab + ne)) = ' + (typeof (ab + ne)) + '<br />');
document.write(ab + ' + ' + nf + ' = ' + (ab + nf) + ', (typeof (ab + nf)) = ' + (typeof (ab + nf)) + '<br />');
document.write(ab + ' + ' + ng + ' = ' + (ab + ng) + ', (typeof (ab + ng)) = ' + (typeof (ab + ng)) + '<br />');
document.write(ab + ' + ' + nh + ' = ' + (ab + nh) + ', (typeof (ab + nh)) = ' + (typeof (ab + nh)) + '<br />');
document.write(ab + ' + ' + ab + ' = ' + (ab + ab) + ', (typeof (ab + ab)) = ' + (typeof (ab + ab)) + '<br />');
document.write(ab + ' + ' + ac + ' = ' + (ab + ac) + ', (typeof (ab + ac)) = ' + (typeof (ab + ac)) + '<br />');
document.write(ab + ' + ' + oa + ' = ' + (ab + oa) + ', (typeof (ab + oa)) = ' + (typeof (ab + oa)) + '<br />');
document.write(ab + ' + ' + ob + ' = ' + (ab + ob) + ', (typeof (ab + ob)) = ' + (typeof (ab + ob)) + '<br />');
document.write(ab + ' + ' + oc + ' = ' + (ab + oc) + ', (typeof (ab + oc)) = ' + (typeof (ab + oc)) + '<br /><br />');
document.write(ac + ' + ' + ua + ' = ' + (ac + ua) + ', (typeof (ac + ua)) = ' + (typeof (ac + ua)) + '<br />');
document.write(ac + ' + ' + la + ' = ' + (ac + la) + ', (typeof (ac + la)) = ' + (typeof (ac + la)) + '<br />');
document.write(ac + ' + ' + ba + ' = ' + (ac + ba) + ', (typeof (ac + ba)) = ' + (typeof (ac + ba)) + '<br />');
document.write(ac + ' + ' + bb + ' = ' + (ac + bb) + ', (typeof (ac + bb)) = ' + (typeof (ac + bb)) + '<br />');
document.write(ac + ' + ' + bc + ' = ' + (ac + bc) + ', (typeof (ac + bc)) = ' + (typeof (ac + bc)) + '<br />');
document.write(ac + ' + ' + bd + ' = ' + (ac + bd) + ', (typeof (ac + bd)) = ' + (typeof (ac + bd)) + '<br />');
document.write(ac + ' + ' + na + ' = ' + (ac + na) + ', (typeof (ac + na)) = ' + (typeof (ac + na)) + '<br />');
document.write(ac + ' + ' + nb + ' = ' + (ac + nb) + ', (typeof (ac + nb)) = ' + (typeof (ac + nb)) + '<br />');
document.write(ac + ' + ' + nc + ' = ' + (ac + nc) + ', (typeof (ac + nc)) = ' + (typeof (ac + nc)) + '<br />');
document.write(ac + ' + ' + nd + ' = ' + (ac + nd) + ', (typeof (ac + nd)) = ' + (typeof (ac + nd)) + '<br />');
document.write(ac + ' + ' + ne + ' = ' + (ac + ne) + ', (typeof (ac + ne)) = ' + (typeof (ac + ne)) + '<br />');
document.write(ac + ' + ' + nf + ' = ' + (ac + nf) + ', (typeof (ac + nf)) = ' + (typeof (ac + nf)) + '<br />');
document.write(ac + ' + ' + ng + ' = ' + (ac + ng) + ', (typeof (ac + ng)) = ' + (typeof (ac + ng)) + '<br />');
document.write(ac + ' + ' + nh + ' = ' + (ac + nh) + ', (typeof (ac + nh)) = ' + (typeof (ac + nh)) + '<br />');
document.write(ac + ' + ' + ac + ' = ' + (ac + ac) + ', (typeof (ac + ac)) = ' + (typeof (ac + ac)) + '<br />');
document.write(ac + ' + ' + oa + ' = ' + (ac + oa) + ', (typeof (ac + oa)) = ' + (typeof (ac + oa)) + '<br />');
document.write(ac + ' + ' + ob + ' = ' + (ac + ob) + ', (typeof (ac + ob)) = ' + (typeof (ac + ob)) + '<br />');
document.write(ac + ' + ' + oc + ' = ' + (ac + oc) + ', (typeof (ac + oc)) = ' + (typeof (ac + oc)) + '<br /><br />');
document.write(oa + ' + ' + ua + ' = ' + (oa + ua) + ', (typeof (oa + ua)) = ' + (typeof (oa + ua)) + '<br />');
document.write(oa + ' + ' + la + ' = ' + (oa + la) + ', (typeof (oa + la)) = ' + (typeof (oa + la)) + '<br />');
document.write(oa + ' + ' + ba + ' = ' + (oa + ba) + ', (typeof (oa + ba)) = ' + (typeof (oa + ba)) + '<br />');
document.write(oa + ' + ' + bb + ' = ' + (oa + bb) + ', (typeof (oa + bb)) = ' + (typeof (oa + bb)) + '<br />');
document.write(oa + ' + ' + bc + ' = ' + (oa + bc) + ', (typeof (oa + bc)) = ' + (typeof (oa + bc)) + '<br />');
document.write(oa + ' + ' + bd + ' = ' + (oa + bd) + ', (typeof (oa + bd)) = ' + (typeof (oa + bd)) + '<br />');
document.write(oa + ' + ' + na + ' = ' + (oa + na) + ', (typeof (oa + na)) = ' + (typeof (oa + na)) + '<br />');
document.write(oa + ' + ' + nb + ' = ' + (oa + nb) + ', (typeof (oa + nb)) = ' + (typeof (oa + nb)) + '<br />');
document.write(oa + ' + ' + nc + ' = ' + (oa + nc) + ', (typeof (oa + nc)) = ' + (typeof (oa + nc)) + '<br />');
document.write(oa + ' + ' + nd + ' = ' + (oa + nd) + ', (typeof (oa + nd)) = ' + (typeof (oa + nd)) + '<br />');
document.write(oa + ' + ' + ne + ' = ' + (oa + ne) + ', (typeof (oa + ne)) = ' + (typeof (oa + ne)) + '<br />');
document.write(oa + ' + ' + nf + ' = ' + (oa + nf) + ', (typeof (oa + nf)) = ' + (typeof (oa + nf)) + '<br />');
document.write(oa + ' + ' + ng + ' = ' + (oa + ng) + ', (typeof (oa + ng)) = ' + (typeof (oa + ng)) + '<br />');
document.write(oa + ' + ' + nh + ' = ' + (oa + nh) + ', (typeof (oa + nh)) = ' + (typeof (oa + nh)) + '<br />');
document.write(oa + ' + ' + oa + ' = ' + (oa + oa) + ', (typeof (oa + oa)) = ' + (typeof (oa + oa)) + '<br />');
document.write(oa + ' + ' + ob + ' = ' + (oa + ob) + ', (typeof (oa + ob)) = ' + (typeof (oa + ob)) + '<br />');
document.write(oa + ' + ' + oc + ' = ' + (oa + oc) + ', (typeof (oa + oc)) = ' + (typeof (oa + oc)) + '<br /><br />');
document.write(ob + ' + ' + ua + ' = ' + (ob + ua) + ', (typeof (ob + ua)) = ' + (typeof (ob + ua)) + '<br />');
document.write(ob + ' + ' + la + ' = ' + (ob + la) + ', (typeof (ob + la)) = ' + (typeof (ob + la)) + '<br />');
document.write(ob + ' + ' + ba + ' = ' + (ob + ba) + ', (typeof (ob + ba)) = ' + (typeof (ob + ba)) + '<br />');
document.write(ob + ' + ' + bb + ' = ' + (ob + bb) + ', (typeof (ob + bb)) = ' + (typeof (ob + bb)) + '<br />');
document.write(ob + ' + ' + bc + ' = ' + (ob + bc) + ', (typeof (ob + bc)) = ' + (typeof (ob + bc)) + '<br />');
document.write(ob + ' + ' + bd + ' = ' + (ob + bd) + ', (typeof (ob + bd)) = ' + (typeof (ob + bd)) + '<br />');
document.write(ob + ' + ' + na + ' = ' + (ob + na) + ', (typeof (ob + na)) = ' + (typeof (ob + na)) + '<br />');
document.write(ob + ' + ' + nb + ' = ' + (ob + nb) + ', (typeof (ob + nb)) = ' + (typeof (ob + nb)) + '<br />');
document.write(ob + ' + ' + nc + ' = ' + (ob + nc) + ', (typeof (ob + nc)) = ' + (typeof (ob + nc)) + '<br />');
document.write(ob + ' + ' + nd + ' = ' + (ob + nd) + ', (typeof (ob + nd)) = ' + (typeof (ob + nd)) + '<br />');
document.write(ob + ' + ' + ne + ' = ' + (ob + ne) + ', (typeof (ob + ne)) = ' + (typeof (ob + ne)) + '<br />');
document.write(ob + ' + ' + nf + ' = ' + (ob + nf) + ', (typeof (ob + nf)) = ' + (typeof (ob + nf)) + '<br />');
document.write(ob + ' + ' + ng + ' = ' + (ob + ng) + ', (typeof (ob + ng)) = ' + (typeof (ob + ng)) + '<br />');
document.write(ob + ' + ' + nh + ' = ' + (ob + nh) + ', (typeof (ob + nh)) = ' + (typeof (ob + nh)) + '<br />');
document.write(ob + ' + ' + ob + ' = ' + (ob + ob) + ', (typeof (ob + ob)) = ' + (typeof (ob + ob)) + '<br />');
document.write(ob + ' + ' + oc + ' = ' + (ob + oc) + ', (typeof (ob + oc)) = ' + (typeof (ob + oc)) + '<br /><br />');
document.write(oc + ' + ' + ua + ' = ' + (oc + ua) + ', (typeof (oc + ua)) = ' + (typeof (oc + ua)) + '<br />');
document.write(oc + ' + ' + la + ' = ' + (oc + la) + ', (typeof (oc + la)) = ' + (typeof (oc + la)) + '<br />');
document.write(oc + ' + ' + ba + ' = ' + (oc + ba) + ', (typeof (oc + ba)) = ' + (typeof (oc + ba)) + '<br />');
document.write(oc + ' + ' + bb + ' = ' + (oc + bb) + ', (typeof (oc + bb)) = ' + (typeof (oc + bb)) + '<br />');
document.write(oc + ' + ' + bc + ' = ' + (oc + bc) + ', (typeof (oc + bc)) = ' + (typeof (oc + bc)) + '<br />');
document.write(oc + ' + ' + bd + ' = ' + (oc + bd) + ', (typeof (oc + bd)) = ' + (typeof (oc + bd)) + '<br />');
document.write(oc + ' + ' + na + ' = ' + (oc + na) + ', (typeof (oc + na)) = ' + (typeof (oc + na)) + '<br />');
document.write(oc + ' + ' + nb + ' = ' + (oc + nb) + ', (typeof (oc + nb)) = ' + (typeof (oc + nb)) + '<br />');
document.write(oc + ' + ' + nc + ' = ' + (oc + nc) + ', (typeof (oc + nc)) = ' + (typeof (oc + nc)) + '<br />');
document.write(oc + ' + ' + nd + ' = ' + (oc + nd) + ', (typeof (oc + nd)) = ' + (typeof (oc + nd)) + '<br />');
document.write(oc + ' + ' + ne + ' = ' + (oc + ne) + ', (typeof (oc + ne)) = ' + (typeof (oc + ne)) + '<br />');
document.write(oc + ' + ' + nf + ' = ' + (oc + nf) + ', (typeof (oc + nf)) = ' + (typeof (oc + nf)) + '<br />');
document.write(oc + ' + ' + ng + ' = ' + (oc + ng) + ', (typeof (oc + ng)) = ' + (typeof (oc + ng)) + '<br />');
document.write(oc + ' + ' + nh + ' = ' + (oc + nh) + ', (typeof (oc + nh)) = ' + (typeof (oc + nh)) + '<br />');
document.write(oc + ' + ' + oc + ' = ' + (oc + oc) + ', (typeof (oc + oc)) = ' + (typeof (oc + oc)) + '<hr />');
document.write('某个运算数是NaN:<br />');
document.write(nd + ' + ' + ua + ' = ' + (nd + ua) + ', ' + ua + ' + ' + nd + ' = ' + (ua + nd) + '<br />');
document.write(nd + ' + ' + la + ' = ' + (nd + la) + ', ' + la + ' + ' + nd + ' = ' + (la + nd) + '<br />');
document.write(nd + ' + ' + ba + ' = ' + (nd + ba) + ', ' + ba + ' + ' + nd + ' = ' + (ba + nd) + '<br />');
document.write(nd + ' + ' + bb + ' = ' + (nd + bb) + ', ' + bb + ' + ' + nd + ' = ' + (bb + nd) + '<br />');
document.write(nd + ' + ' + bc + ' = ' + (nd + bc) + ', ' + bc + ' + ' + nd + ' = ' + (bc + nd) + '<br />');
document.write(nd + ' + ' + bd + ' = ' + (nd + bd) + ', ' + bd + ' + ' + nd + ' = ' + (bd + nd) + '<br />');
document.write(nd + ' + ' + na + ' = ' + (nd + na) + ', ' + na + ' + ' + nd + ' = ' + (na + nd) + '<br />');
document.write(nd + ' + ' + nb + ' = ' + (nd + nb) + ', ' + nb + ' + ' + nd + ' = ' + (nb + nd) + '<br />');
document.write(nd + ' + ' + nc + ' = ' + (nd + nc) + ', ' + nc + ' + ' + nd + ' = ' + (nc + nd) + '<br />');
document.write(nd + ' + ' + nd + ' = ' + (nd + nd) + ', ' + nd + ' + ' + nd + ' = ' + (nd + nd) + '<br />');
document.write(nd + ' + ' + ne + ' = ' + (nd + ne) + ', ' + ne + ' + ' + nd + ' = ' + (ne + nd) + '<br />');
document.write(nd + ' + ' + nf + ' = ' + (nd + nf) + ', ' + nf + ' + ' + nd + ' = ' + (nf + nd) + '<br />');
document.write(nd + ' + ' + ng + ' = ' + (nd + ng) + ', ' + ng + ' + ' + nd + ' = ' + (ng + nd) + '<br />');
document.write(nd + ' + ' + nh + ' = ' + (nd + nh) + ', ' + nh + ' + ' + nd + ' = ' + (nh + nd) + '<hr />');
document.write('某个运算数是undefined:<br />');
document.write(ua + ' + ' + ua + ' = ' + (ua + ua) + ', ' + ua + ' + ' + ua + ' = ' + (ua + ua) + '<br />');
document.write(ua + ' + ' + la + ' = ' + (ua + la) + ', ' + la + ' + ' + ua + ' = ' + (la + ua) + '<br />');
document.write(ua + ' + ' + ba + ' = ' + (ua + ba) + ', ' + ba + ' + ' + ua + ' = ' + (ba + ua) + '<br />');
document.write(ua + ' + ' + bb + ' = ' + (ua + bb) + ', ' + bb + ' + ' + ua + ' = ' + (bb + ua) + '<br />');
document.write(ua + ' + ' + bc + ' = ' + (ua + bc) + ', ' + bc + ' + ' + ua + ' = ' + (bc + ua) + '<br />');
document.write(ua + ' + ' + bd + ' = ' + (ua + bd) + ', ' + bd + ' + ' + ua + ' = ' + (bd + ua) + '<br />');
document.write(ua + ' + ' + na + ' = ' + (ua + na) + ', ' + na + ' + ' + ua + ' = ' + (na + ua) + '<br />');
document.write(ua + ' + ' + nb + ' = ' + (ua + nb) + ', ' + nb + ' + ' + ua + ' = ' + (nb + ua) + '<br />');
document.write(ua + ' + ' + nc + ' = ' + (ua + nc) + ', ' + nc + ' + ' + ua + ' = ' + (nc + ua) + '<br />');
document.write(ua + ' + ' + nd + ' = ' + (ua + nd) + ', ' + nd + ' + ' + ua + ' = ' + (nd + ua) + '<br />');
document.write(ua + ' + ' + ne + ' = ' + (ua + ne) + ', ' + ne + ' + ' + ua + ' = ' + (ne + ua) + '<br />');
document.write(ua + ' + ' + nf + ' = ' + (ua + nf) + ', ' + nf + ' + ' + ua + ' = ' + (nf + ua) + '<br />');
document.write(ua + ' + ' + ng + ' = ' + (ua + ng) + ', ' + ng + ' + ' + ua + ' = ' + (ng + ua) + '<br />');
document.write(ua + ' + ' + nh + ' = ' + (ua + nh) + ', ' + nh + ' + ' + ua + ' = ' + (nh + ua) + '<hr />');
document.write('某个运算数是null:<br />');
document.write(la + ' + ' + la + ' = ' + (la + la) + '<br />');
document.write(la + ' + ' + ba + ' = ' + (la + ba) + '<br />');
document.write(la + ' + ' + bb + ' = ' + (la + bb) + '<br />');
document.write(la + ' + ' + bc + ' = ' + (la + bc) + '<br />');
document.write(la + ' + ' + bd + ' = ' + (la + bd) + '<br />');
document.write(la + ' + ' + na + ' = ' + (la + na) + '<br />');
document.write(la + ' + ' + nb + ' = ' + (la + nb) + '<br />');
document.write(la + ' + ' + nc + ' = ' + (la + nc) + '<hr />');
document.write('Infinity的加法:<br />');
document.write(ne + ' + ' + la + ' = ' + (ne + la) + ', ' + la + ' + ' + ne + ' = ' + (la + ne) + '<br />');
document.write(ne + ' + ' + ba + ' = ' + (ne + ba) + ', ' + ba + ' + ' + ne + ' = ' + (ba + ne) + '<br />');
document.write(ne + ' + ' + bb + ' = ' + (ne + bb) + ', ' + bb + ' + ' + ne + ' = ' + (bb + ne) + '<br />');
document.write(ne + ' + ' + bc + ' = ' + (ne + bc) + ', ' + bc + ' + ' + ne + ' = ' + (bc + ne) + '<br />');
document.write(ne + ' + ' + bd + ' = ' + (ne + bd) + ', ' + bd + ' + ' + ne + ' = ' + (bd + ne) + '<br />');
document.write(ne + ' + ' + na + ' = ' + (ne + na) + ', ' + na + ' + ' + ne + ' = ' + (na + ne) + '<br />');
document.write(ne + ' + ' + nb + ' = ' + (ne + nb) + ', ' + nb + ' + ' + ne + ' = ' + (nb + ne) + '<br />');
document.write(ne + ' + ' + nc + ' = ' + (ne + nc) + ', ' + nc + ' + ' + ne + ' = ' + (nc + ne) + '<br />');
document.write(ne + ' + ' + ne + ' = ' + (ne + ne) + ', ' + ne + ' + ' + ne + ' = ' + (ne + ne) + '<br />');
document.write(ne + ' + ' + nf + ' = ' + (ne + nf) + ', ' + nf + ' + ' + ne + ' = ' + (nf + ne) + '<br />');
document.write(ne + ' + ' + ng + ' = ' + (ne + ng) + ', ' + ng + ' + ' + ne + ' = ' + (ng + ne) + '<br />');
document.write(ne + ' + ' + nh + ' = ' + (ne + nh) + ', ' + nh + ' + ' + ne + ' = ' + (nh + ne) + '<hr />');
document.write('-Infinity的加法:<br />');
document.write(nf + ' + ' + la + ' = ' + (nf + la) + ', ' + la + ' + ' + nf + ' = ' + (la + nf) + '<br />');
document.write(nf + ' + ' + ba + ' = ' + (nf + ba) + ', ' + ba + ' + ' + nf + ' = ' + (ba + nf) + '<br />');
document.write(nf + ' + ' + bb + ' = ' + (nf + bb) + ', ' + bb + ' + ' + nf + ' = ' + (bb + nf) + '<br />');
document.write(nf + ' + ' + bc + ' = ' + (nf + bc) + ', ' + bc + ' + ' + nf + ' = ' + (bc + nf) + '<br />');
document.write(nf + ' + ' + bd + ' = ' + (nf + bd) + ', ' + bd + ' + ' + nf + ' = ' + (bd + nf) + '<br />');
document.write(nf + ' + ' + na + ' = ' + (nf + na) + ', ' + na + ' + ' + nf + ' = ' + (na + nf) + '<br />');
document.write(nf + ' + ' + nb + ' = ' + (nf + nb) + ', ' + nb + ' + ' + nf + ' = ' + (nb + nf) + '<br />');
document.write(nf + ' + ' + nc + ' = ' + (nf + nc) + ', ' + nc + ' + ' + nf + ' = ' + (nc + nf) + '<br />');
document.write(nf + ' + ' + nf + ' = ' + (nf + nf) + ', ' + nf + ' + ' + nf + ' = ' + (nf + nf) + '<br />');
document.write(nf + ' + ' + ng + ' = ' + (nf + ng) + ', ' + ng + ' + ' + nf + ' = ' + (ng + nf) + '<br />');
document.write(nf + ' + ' + nh + ' = ' + (nf + nh) + ', ' + nh + ' + ' + nf + ' = ' + (nh + nf) + '<hr />');
document.write('true或false的加法:<br />');
document.write(ba + ' + ' + ba + ' = ' + (ba + ba) + '<br />');
document.write(ba + ' + ' + bb + ' = ' + (ba + bb) + '<br />');
document.write(ba + ' + ' + bc + ' = ' + (ba + bc) + '<br />');
document.write(ba + ' + ' + bd + ' = ' + (ba + bd) + '<br />');
document.write(ba + ' + ' + na + ' = ' + (ba + na) + '<br />');
document.write(ba + ' + ' + nb + ' = ' + (ba + nb) + '<br />');
document.write(ba + ' + ' + nc + ' = ' + (ba + nc) + '<br />');
document.write(ba + ' + ' + ng + ' = ' + (ba + ng) + '<br />');
document.write(ba + ' + ' + nh + ' = ' + (ba + nh) + '<br />');
</script>
</body>
</html>
2.4.2. 效果图
3. 减法运算符
3.1. 减法运算符由加号(-)表示。
3.2. 减法运算符相减两个数字和我们数学中的减法运算没有什么区别。
var result = 2 - 1; // result是1
3.3. 与加法运算符一样, 在处理特殊值时, 减法运算符也有一些特殊行为:
3.3.1. null、空字符串(''和new String())、空数组([]和new Array())在减法运算中转为0。
3.3.2. true、new Boolean(true)在减法运算中转为1; false、new Boolean(false)在减法运算中转为0。
3.3.3. new Number()这一类的数字对象在减法运算中转为原始数字。
3.3.4. 可完整转换为数字的字符串在减法运算中转为数字(诸如: '10'、'NaN'、'Infinity'、'-Infinity'、new String('0x10'), 其中'NaN'转为数字NaN, 'Infinity'转为数字Infinity, '-Infinity'转为数字-Infinity)。
3.3.5. 某个运算数是对象(不包含可完整转为数字的字符串对象(new String()和new String('010')这一类字符串对象)、空数组对象([]和new Array())、布尔对象(new Boolean(true)和new Boolean(false))、数字对象(new Number()这一类数字对象))、NaN、undefined、不能完整转换为数字的字符串和'NaN', 结果为NaN。
3.3.6. 有效数字或转为有效数字(null、空字符串(''和new String())、空数组([]和new Array())、布尔类型(true、new Boolean(true)、false、new Boolean(false))或可完整转为数字的字符串('NaN'除外)), 另一个运算数是有效数字或转为有效数字, 它们都会转为相应的数字, 然后作减法运算。
3.3.7. 有效数字或转为有效数字减去Infinity, 结果为-Infinity; Infinity减去有效数字或转为有效数字, 结果为Infinity。
3.3.8. 有效数字或转为有效数字减去-Infinity, 结果为Infinity; -Infinity减去有效数字或转为有效数字, 结果为-Infinity。
3.3.9. Infinity减去Infinity, 结果为NaN。
3.3.10. Infinity减去-Infinity, 结果为Infinity。
3.3.11. -Infinity减去Infinity, 结果为-Infinity。
3.3.12. -Infinity减去-Infinity, 结果为NaN。
3.4. 例子
3.4.1. 代码
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8" />
<title>减法运算符</title>
<style type="text/css">
.span1 {
position: absolute;
left: 440px;
}
.span2 {
position: absolute;
left: 1400px;
}
</style>
</head>
<body>
<script type="text/javascript">
var ua = undefined;
var la = null;
var ba = true, bb = false, bc = new Boolean(true), bd = new Boolean(false);
var na = 0, nb = 1, nc = -10, nd = NaN, ne = Infinity, nf = -Infinity, ng = new Number(), nh = new Number(1000);
var sa = '', sb = '1abc', sc ='16', sd = '3.1415926', se = '+10', sf = '-10', sg = '0x10', sh = '010', si = '5e-324';
var sj = 'Infinity', sk = '-Infinity', sl = 'NaN', sm = new String(), sn = new String('8');
var aa = [], ab = ['高性能JavaScript'], ac = new Array();
var oa = {}, ob = {id: 1001, name: 'zhangsan'}, oc = new Object();
document.write('常规的数学减法运算:<br />');
document.write(nb + ' - ' + na + ' = ' + (nb - na) + '<br />');
document.write(nb + ' - ' + nb + ' = ' + (nb - nb) + '<br />');
document.write(nb + ' - ' + nc + ' = ' + (nb - nc) + '<br /><br />');
document.write(ng + ' - ' + na + ' = ' + (ng - na) + '<br />');
document.write(ng + ' - ' + nb + ' = ' + (ng - nb) + '<br />');
document.write(ng + ' - ' + nc + ' = ' + (ng - nc) + '<br />');
document.write(ng + ' - ' + ng + ' = ' + (ng - ng) + '<br />');
document.write(ng + ' - ' + nh + ' = ' + (ng - nh) + '<br /><br />');
document.write(nh + ' - ' + na + ' = ' + (nh - na) + '<br />');
document.write(nh + ' - ' + nb + ' = ' + (nh - nb) + '<br />');
document.write(nh + ' - ' + nc + ' = ' + (nh - nc) + '<br />');
document.write(nh + ' - ' + ng + ' = ' + (nh - ng) + '<br />');
document.write(nh + ' - ' + nh + ' = ' + (nh - nh) + '<hr />');
document.write('某个运算数是对象(不包含可完整转为数字的字符串对象(new String()和new String("010")这一类字符串对象)、空数组对象([]和new Array())、布尔对象(new Boolean(true)和new Boolean(false))、数字对象(new Number()这一类数字对象)):<br />');
document.write('<div style="float: left;"');
document.write('<span>' + ab + ' - ' + ua + ' = ' + (ab - ua) + '</span><span class="span1">' + ua + ' - ' + ab + ' = ' + (ua - ab) + '</span><br />');
document.write('<span>' + ab + ' - ' + la + ' = ' + (ab - la) + '</span><span class="span1">' + la + ' - ' + ab + ' = ' + (la - ab) + '</span><br />');
document.write('<span>' + ab + ' - ' + ba + ' = ' + (ab - ba) + '</span><span class="span1">' + ba + ' - ' + ab + ' = ' + (ba - ab) + '</span><br />');
document.write('<span>' + ab + ' - ' + bb + ' = ' + (ab - bb) + '</span><span class="span1">' + bb + ' - ' + ab + ' = ' + (bb - ab) + '</span><br />');
document.write('<span>' + ab + ' - ' + bc + ' = ' + (ab - bc) + '</span><span class="span1">' + bc + ' - ' + ab + ' = ' + (bc - ab) + '</span><br />');
document.write('<span>' + ab + ' - ' + bd + ' = ' + (ab - bd) + '</span><span class="span1">' + bd + ' - ' + ab + ' = ' + (bd - ab) + '</span><br />');
document.write('<span>' + ab + ' - ' + na + ' = ' + (ab - na) + '</span><span class="span1">' + na + ' - ' + ab + ' = ' + (na - ab) + '</span><br />');
document.write('<span>' + ab + ' - ' + nb + ' = ' + (ab - nb) + '</span><span class="span1">' + nb + ' - ' + ab + ' = ' + (nb - ab) + '</span><br />');
document.write('<span>' + ab + ' - ' + nc + ' = ' + (ab - nc) + '</span><span class="span1">' + nc + ' - ' + ab + ' = ' + (nc - ab) + '</span><br />');
document.write('<span>' + ab + ' - ' + nd + ' = ' + (ab - nd) + '</span><span class="span1">' + nd + ' - ' + ab + ' = ' + (nd - ab) + '</span><br />');
document.write('<span>' + ab + ' - ' + ne + ' = ' + (ab - ne) + '</span><span class="span1">' + ne + ' - ' + ab + ' = ' + (ne - ab) + '</span><br />');
document.write('<span>' + ab + ' - ' + nf + ' = ' + (ab - nf) + '</span><span class="span1">' + nf + ' - ' + ab + ' = ' + (nf - ab) + '</span><br />');
document.write('<span>' + ab + ' - ' + ng + ' = ' + (ab - ng) + '</span><span class="span1">' + ng + ' - ' + ab + ' = ' + (ng - ab) + '</span><br />');
document.write('<span>' + ab + ' - ' + nh + ' = ' + (ab - nh) + '</span><span class="span1">' + nh + ' - ' + ab + ' = ' + (nh - ab) + '</span><br />');
document.write('<span>' + ab + ' - ' + sa + ' = ' + (ab - sa) + '</span><span class="span1">' + sa + ' - ' + ab + ' = ' + (sa - ab) + '</span><br />');
document.write('<span>' + ab + ' - ' + sb + ' = ' + (ab - sb) + '</span><span class="span1">' + sb + ' - ' + ab + ' = ' + (sb - ab) + '</span><br />');
document.write('<span>' + ab + ' - ' + sc + ' = ' + (ab - sc) + '</span><span class="span1">' + sc + ' - ' + ab + ' = ' + (sc - ab) + '</span><br />');
document.write('<span>' + ab + ' - ' + sd + ' = ' + (ab - sd) + '</span><span class="span1">' + sd + ' - ' + ab + ' = ' + (sd - ab) + '</span><br />');
document.write('<span>' + ab + ' - ' + se + ' = ' + (ab - se) + '</span><span class="span1">' + se + ' - ' + ab + ' = ' + (se - ab) + '</span><br />');
document.write('<span>' + ab + ' - ' + sf + ' = ' + (ab - sf) + '</span><span class="span1">' + sf + ' - ' + ab + ' = ' + (sf - ab) + '</span><br />');
document.write('<span>' + ab + ' - ' + sg + ' = ' + (ab - sg) + '</span><span class="span1">' + sg + ' - ' + ab + ' = ' + (sg - ab) + '</span><br />');
document.write('<span>' + ab + ' - ' + sh + ' = ' + (ab - sh) + '</span><span class="span1">' + sh + ' - ' + ab + ' = ' + (sh - ab) + '</span><br />');
document.write('<span>' + ab + ' - ' + si + ' = ' + (ab - si) + '</span><span class="span1">' + si + ' - ' + ab + ' = ' + (si - ab) + '</span><br />');
document.write('<span>' + ab + ' - ' + sj + ' = ' + (ab - sj) + '</span><span class="span1">' + sj + ' - ' + ab + ' = ' + (sj - ab) + '</span><br />');
document.write('<span>' + ab + ' - ' + sk + ' = ' + (ab - sk) + '</span><span class="span1">' + sk + ' - ' + ab + ' = ' + (sk - ab) + '</span><br />');
document.write('<span>' + ab + ' - ' + sl + ' = ' + (ab - sl) + '</span><span class="span1">' + sl + ' - ' + ab + ' = ' + (sl - ab) + '</span><br />');
document.write('<span>' + ab + ' - ' + sm + ' = ' + (ab - sm) + '</span><span class="span1">' + sm + ' - ' + ab + ' = ' + (sm - ab) + '</span><br />');
document.write('<span>' + ab + ' - ' + sn + ' = ' + (ab - sn) + '</span><span class="span1">' + sn + ' - ' + ab + ' = ' + (sn - ab) + '</span><br />');
document.write('<span>' + ab + ' - ' + aa + ' = ' + (ab - aa) + '</span><span class="span1">' + aa + ' - ' + ab + ' = ' + (aa - ab) + '</span><br />');
document.write('<span>' + ab + ' - ' + ab + ' = ' + (ab - ab) + '</span><span class="span1">' + ab + ' - ' + ab + ' = ' + (ab - ab) + '</span><br />');
document.write('<span>' + ab + ' - ' + ac + ' = ' + (ab - ac) + '</span><span class="span1">' + ac + ' - ' + ab + ' = ' + (ac - ab) + '</span><br />');
document.write('<span>' + ab + ' - ' + oa + ' = ' + (ab - oa) + '</span><span class="span1">' + oa + ' - ' + ab + ' = ' + (oa - ab) + '</span><br />');
document.write('<span>' + ab + ' - ' + ob + ' = ' + (ab - ob) + '</span><span class="span1">' + ob + ' - ' + ab + ' = ' + (ob - ab) + '</span><br />');
document.write('<span>' + ab + ' - ' + oc + ' = ' + (ab - oc) + '</span><span class="span1">' + oc + ' - ' + ab + ' = ' + (oc - ab) + '</span></div>');
document.write('<div style="float: left; margin-left: 560px;"');
document.write('<span>' + oa + ' - ' + ua + ' = ' + (oa - ua) + '</span><span class="span2">' + ua + ' - ' + oa + ' = ' + (ua - oa) + '</span><br />');
document.write('<span>' + oa + ' - ' + la + ' = ' + (oa - la) + '</span><span class="span2">' + la + ' - ' + oa + ' = ' + (la - oa) + '</span><br />');
document.write('<span>' + oa + ' - ' + ba + ' = ' + (oa - ba) + '</span><span class="span2">' + ba + ' - ' + oa + ' = ' + (ba - oa) + '</span><br />');
document.write('<span>' + oa + ' - ' + bb + ' = ' + (oa - bb) + '</span><span class="span2">' + bb + ' - ' + oa + ' = ' + (bb - oa) + '</span><br />');
document.write('<span>' + oa + ' - ' + bc + ' = ' + (oa - bc) + '</span><span class="span2">' + bc + ' - ' + oa + ' = ' + (bc - oa) + '</span><br />');
document.write('<span>' + oa + ' - ' + bd + ' = ' + (oa - bd) + '</span><span class="span2">' + bd + ' - ' + oa + ' = ' + (bd - oa) + '</span><br />');
document.write('<span>' + oa + ' - ' + na + ' = ' + (oa - na) + '</span><span class="span2">' + na + ' - ' + oa + ' = ' + (na - oa) + '</span><br />');
document.write('<span>' + oa + ' - ' + nb + ' = ' + (oa - nb) + '</span><span class="span2">' + nb + ' - ' + oa + ' = ' + (nb - oa) + '</span><br />');
document.write('<span>' + oa + ' - ' + nc + ' = ' + (oa - nc) + '</span><span class="span2">' + nc + ' - ' + oa + ' = ' + (nc - oa) + '</span><br />');
document.write('<span>' + oa + ' - ' + nd + ' = ' + (oa - nd) + '</span><span class="span2">' + nd + ' - ' + oa + ' = ' + (nd - oa) + '</span><br />');
document.write('<span>' + oa + ' - ' + ne + ' = ' + (oa - ne) + '</span><span class="span2">' + ne + ' - ' + oa + ' = ' + (ne - oa) + '</span><br />');
document.write('<span>' + oa + ' - ' + nf + ' = ' + (oa - nf) + '</span><span class="span2">' + nf + ' - ' + oa + ' = ' + (nf - oa) + '</span><br />');
document.write('<span>' + oa + ' - ' + ng + ' = ' + (oa - ng) + '</span><span class="span2">' + ng + ' - ' + oa + ' = ' + (ng - oa) + '</span><br />');
document.write('<span>' + oa + ' - ' + nh + ' = ' + (oa - nh) + '</span><span class="span2">' + nh + ' - ' + oa + ' = ' + (nh - oa) + '</span><br />');
document.write('<span>' + oa + ' - ' + sa + ' = ' + (oa - sa) + '</span><span class="span2">' + sa + ' - ' + oa + ' = ' + (sa - oa) + '</span><br />');
document.write('<span>' + oa + ' - ' + sb + ' = ' + (oa - sb) + '</span><span class="span2">' + sb + ' - ' + oa + ' = ' + (sb - oa) + '</span><br />');
document.write('<span>' + oa + ' - ' + sc + ' = ' + (oa - sc) + '</span><span class="span2">' + sc + ' - ' + oa + ' = ' + (sc - oa) + '</span><br />');
document.write('<span>' + oa + ' - ' + sd + ' = ' + (oa - sd) + '</span><span class="span2">' + sd + ' - ' + oa + ' = ' + (sd - oa) + '</span><br />');
document.write('<span>' + oa + ' - ' + se + ' = ' + (oa - se) + '</span><span class="span2">' + se + ' - ' + oa + ' = ' + (se - oa) + '</span><br />');
document.write('<span>' + oa + ' - ' + sf + ' = ' + (oa - sf) + '</span><span class="span2">' + sf + ' - ' + oa + ' = ' + (sf - oa) + '</span><br />');
document.write('<span>' + oa + ' - ' + sg + ' = ' + (oa - sg) + '</span><span class="span2">' + sg + ' - ' + oa + ' = ' + (sg - oa) + '</span><br />');
document.write('<span>' + oa + ' - ' + sh + ' = ' + (oa - sh) + '</span><span class="span2">' + sh + ' - ' + oa + ' = ' + (sh - oa) + '</span><br />');
document.write('<span>' + oa + ' - ' + si + ' = ' + (oa - si) + '</span><span class="span2">' + si + ' - ' + oa + ' = ' + (si - oa) + '</span><br />');
document.write('<span>' + oa + ' - ' + sj + ' = ' + (oa - sj) + '</span><span class="span2">' + sj + ' - ' + oa + ' = ' + (sj - oa) + '</span><br />');
document.write('<span>' + oa + ' - ' + sk + ' = ' + (oa - sk) + '</span><span class="span2">' + sk + ' - ' + oa + ' = ' + (sk - oa) + '</span><br />');
document.write('<span>' + oa + ' - ' + sl + ' = ' + (oa - sl) + '</span><span class="span2">' + sl + ' - ' + oa + ' = ' + (sl - oa) + '</span><br />');
document.write('<span>' + oa + ' - ' + sm + ' = ' + (oa - sm) + '</span><span class="span2">' + sm + ' - ' + oa + ' = ' + (sm - oa) + '</span><br />');
document.write('<span>' + oa + ' - ' + sn + ' = ' + (oa - sn) + '</span><span class="span2">' + sn + ' - ' + oa + ' = ' + (sn - oa) + '</span><br />');
document.write('<span>' + oa + ' - ' + aa + ' = ' + (oa - aa) + '</span><span class="span2">' + aa + ' - ' + oa + ' = ' + (aa - oa) + '</span><br />');
document.write('<span>' + oa + ' - ' + ac + ' = ' + (oa - ac) + '</span><span class="span2">' + ac + ' - ' + oa + ' = ' + (ac - oa) + '</span><br />');
document.write('<span>' + oa + ' - ' + oa + ' = ' + (oa - oa) + '</span><span class="span2">' + oa + ' - ' + oa + ' = ' + (oa - oa) + '</span><br />');
document.write('<span>' + oa + ' - ' + ob + ' = ' + (oa - ob) + '</span><span class="span2">' + ob + ' - ' + oa + ' = ' + (ob - oa) + '</span><br />');
document.write('<span>' + oa + ' - ' + oc + ' = ' + (oa - oc) + '</span><span class="span2">' + oc + ' - ' + oa + ' = ' + (oc - oa) + '</span></div>');
document.write('<br style="clear: left;" /><br />');
document.write('<div style="float: left;"');
document.write('<span>' + ob + ' - ' + ua + ' = ' + (ob - ua) + '</span><span class="span1">' + ua + ' - ' + ob + ' = ' + (ua - ob) + '</span><br />');
document.write('<span>' + ob + ' - ' + la + ' = ' + (ob - la) + '</span><span class="span1">' + la + ' - ' + ob + ' = ' + (la - ob) + '</span><br />');
document.write('<span>' + ob + ' - ' + ba + ' = ' + (ob - ba) + '</span><span class="span1">' + ba + ' - ' + ob + ' = ' + (ba - ob) + '</span><br />');
document.write('<span>' + ob + ' - ' + bb + ' = ' + (ob - bb) + '</span><span class="span1">' + bb + ' - ' + ob + ' = ' + (bb - ob) + '</span><br />');
document.write('<span>' + ob + ' - ' + bc + ' = ' + (ob - bc) + '</span><span class="span1">' + bc + ' - ' + ob + ' = ' + (bc - ob) + '</span><br />');
document.write('<span>' + ob + ' - ' + bd + ' = ' + (ob - bd) + '</span><span class="span1">' + bd + ' - ' + ob + ' = ' + (bd - ob) + '</span><br />');
document.write('<span>' + ob + ' - ' + na + ' = ' + (ob - na) + '</span><span class="span1">' + na + ' - ' + ob + ' = ' + (na - ob) + '</span><br />');
document.write('<span>' + ob + ' - ' + nb + ' = ' + (ob - nb) + '</span><span class="span1">' + nb + ' - ' + ob + ' = ' + (nb - ob) + '</span><br />');
document.write('<span>' + ob + ' - ' + nc + ' = ' + (ob - nc) + '</span><span class="span1">' + nc + ' - ' + ob + ' = ' + (nc - ob) + '</span><br />');
document.write('<span>' + ob + ' - ' + nd + ' = ' + (ob - nd) + '</span><span class="span1">' + nd + ' - ' + ob + ' = ' + (nd - ob) + '</span><br />');
document.write('<span>' + ob + ' - ' + ne + ' = ' + (ob - ne) + '</span><span class="span1">' + ne + ' - ' + ob + ' = ' + (ne - ob) + '</span><br />');
document.write('<span>' + ob + ' - ' + nf + ' = ' + (ob - nf) + '</span><span class="span1">' + nf + ' - ' + ob + ' = ' + (nf - ob) + '</span><br />');
document.write('<span>' + ob + ' - ' + ng + ' = ' + (ob - ng) + '</span><span class="span1">' + ng + ' - ' + ob + ' = ' + (ng - ob) + '</span><br />');
document.write('<span>' + ob + ' - ' + nh + ' = ' + (ob - nh) + '</span><span class="span1">' + nh + ' - ' + ob + ' = ' + (nh - ob) + '</span><br />');
document.write('<span>' + ob + ' - ' + sa + ' = ' + (ob - sa) + '</span><span class="span1">' + sa + ' - ' + ob + ' = ' + (sa - ob) + '</span><br />');
document.write('<span>' + ob + ' - ' + sb + ' = ' + (ob - sb) + '</span><span class="span1">' + sb + ' - ' + ob + ' = ' + (sb - ob) + '</span><br />');
document.write('<span>' + ob + ' - ' + sc + ' = ' + (ob - sc) + '</span><span class="span1">' + sc + ' - ' + ob + ' = ' + (sc - ob) + '</span><br />');
document.write('<span>' + ob + ' - ' + sd + ' = ' + (ob - sd) + '</span><span class="span1">' + sd + ' - ' + ob + ' = ' + (sd - ob) + '</span><br />');
document.write('<span>' + ob + ' - ' + se + ' = ' + (ob - se) + '</span><span class="span1">' + se + ' - ' + ob + ' = ' + (se - ob) + '</span><br />');
document.write('<span>' + ob + ' - ' + sf + ' = ' + (ob - sf) + '</span><span class="span1">' + sf + ' - ' + ob + ' = ' + (sf - ob) + '</span><br />');
document.write('<span>' + ob + ' - ' + sg + ' = ' + (ob - sg) + '</span><span class="span1">' + sg + ' - ' + ob + ' = ' + (sg - ob) + '</span><br />');
document.write('<span>' + ob + ' - ' + sh + ' = ' + (ob - sh) + '</span><span class="span1">' + sh + ' - ' + ob + ' = ' + (sh - ob) + '</span><br />');
document.write('<span>' + ob + ' - ' + si + ' = ' + (ob - si) + '</span><span class="span1">' + si + ' - ' + ob + ' = ' + (si - ob) + '</span><br />');
document.write('<span>' + ob + ' - ' + sj + ' = ' + (ob - sj) + '</span><span class="span1">' + sj + ' - ' + ob + ' = ' + (sj - ob) + '</span><br />');
document.write('<span>' + ob + ' - ' + sk + ' = ' + (ob - sk) + '</span><span class="span1">' + sk + ' - ' + ob + ' = ' + (sk - ob) + '</span><br />');
document.write('<span>' + ob + ' - ' + sl + ' = ' + (ob - sl) + '</span><span class="span1">' + sl + ' - ' + ob + ' = ' + (sl - ob) + '</span><br />');
document.write('<span>' + ob + ' - ' + sm + ' = ' + (ob - sm) + '</span><span class="span1">' + sm + ' - ' + ob + ' = ' + (sm - ob) + '</span><br />');
document.write('<span>' + ob + ' - ' + sn + ' = ' + (ob - sn) + '</span><span class="span1">' + sn + ' - ' + ob + ' = ' + (sn - ob) + '</span><br />');
document.write('<span>' + ob + ' - ' + aa + ' = ' + (ob - aa) + '</span><span class="span1">' + aa + ' - ' + ob + ' = ' + (aa - ob) + '</span><br />');
document.write('<span>' + ob + ' - ' + ac + ' = ' + (ob - ac) + '</span><span class="span1">' + ac + ' - ' + ob + ' = ' + (ac - ob) + '</span><br />');
document.write('<span>' + ob + ' - ' + ob + ' = ' + (ob - ob) + '</span><span class="span1">' + ob + ' - ' + ob + ' = ' + (ob - ob) + '</span><br />');
document.write('<span>' + ob + ' - ' + oc + ' = ' + (ob - oc) + '</span><span class="span1">' + oc + ' - ' + ob + ' = ' + (oc - ob) + '</span></div>');
document.write('<div style="float: left; margin-left: 560px;"');
document.write('<span>' + oc + ' - ' + ua + ' = ' + (oc - ua) + '</span><span class="span2">' + ua + ' - ' + oc + ' = ' + (ua - oc) + '</span><br />');
document.write('<span>' + oc + ' - ' + la + ' = ' + (oc - la) + '</span><span class="span2">' + la + ' - ' + oc + ' = ' + (la - oc) + '</span><br />');
document.write('<span>' + oc + ' - ' + ba + ' = ' + (oc - ba) + '</span><span class="span2">' + ba + ' - ' + oc + ' = ' + (ba - oc) + '</span><br />');
document.write('<span>' + oc + ' - ' + bb + ' = ' + (oc - bb) + '</span><span class="span2">' + bb + ' - ' + oc + ' = ' + (bb - oc) + '</span><br />');
document.write('<span>' + oc + ' - ' + bc + ' = ' + (oc - bc) + '</span><span class="span2">' + bc + ' - ' + oc + ' = ' + (bc - oc) + '</span><br />');
document.write('<span>' + oc + ' - ' + bd + ' = ' + (oc - bd) + '</span><span class="span2">' + bd + ' - ' + oc + ' = ' + (bd - oc) + '</span><br />');
document.write('<span>' + oc + ' - ' + na + ' = ' + (oc - na) + '</span><span class="span2">' + na + ' - ' + oc + ' = ' + (na - oc) + '</span><br />');
document.write('<span>' + oc + ' - ' + nb + ' = ' + (oc - nb) + '</span><span class="span2">' + nb + ' - ' + oc + ' = ' + (nb - oc) + '</span><br />');
document.write('<span>' + oc + ' - ' + nc + ' = ' + (oc - nc) + '</span><span class="span2">' + nc + ' - ' + oc + ' = ' + (nc - oc) + '</span><br />');
document.write('<span>' + oc + ' - ' + nd + ' = ' + (oc - nd) + '</span><span class="span2">' + nd + ' - ' + oc + ' = ' + (nd - oc) + '</span><br />');
document.write('<span>' + oc + ' - ' + ne + ' = ' + (oc - ne) + '</span><span class="span2">' + ne + ' - ' + oc + ' = ' + (ne - oc) + '</span><br />');
document.write('<span>' + oc + ' - ' + nf + ' = ' + (oc - nf) + '</span><span class="span2">' + nf + ' - ' + oc + ' = ' + (nf - oc) + '</span><br />');
document.write('<span>' + oc + ' - ' + ng + ' = ' + (oc - ng) + '</span><span class="span2">' + ng + ' - ' + oc + ' = ' + (ng - oc) + '</span><br />');
document.write('<span>' + oc + ' - ' + nh + ' = ' + (oc - nh) + '</span><span class="span2">' + nh + ' - ' + oc + ' = ' + (nh - oc) + '</span><br />');
document.write('<span>' + oc + ' - ' + sa + ' = ' + (oc - sa) + '</span><span class="span2">' + sa + ' - ' + oc + ' = ' + (sa - oc) + '</span><br />');
document.write('<span>' + oc + ' - ' + sb + ' = ' + (oc - sb) + '</span><span class="span2">' + sb + ' - ' + oc + ' = ' + (sb - oc) + '</span><br />');
document.write('<span>' + oc + ' - ' + sc + ' = ' + (oc - sc) + '</span><span class="span2">' + sc + ' - ' + oc + ' = ' + (sc - oc) + '</span><br />');
document.write('<span>' + oc + ' - ' + sd + ' = ' + (oc - sd) + '</span><span class="span2">' + sd + ' - ' + oc + ' = ' + (sd - oc) + '</span><br />');
document.write('<span>' + oc + ' - ' + se + ' = ' + (oc - se) + '</span><span class="span2">' + se + ' - ' + oc + ' = ' + (se - oc) + '</span><br />');
document.write('<span>' + oc + ' - ' + sf + ' = ' + (oc - sf) + '</span><span class="span2">' + sf + ' - ' + oc + ' = ' + (sf - oc) + '</span><br />');
document.write('<span>' + oc + ' - ' + sg + ' = ' + (oc - sg) + '</span><span class="span2">' + sg + ' - ' + oc + ' = ' + (sg - oc) + '</span><br />');
document.write('<span>' + oc + ' - ' + sh + ' = ' + (oc - sh) + '</span><span class="span2">' + sh + ' - ' + oc + ' = ' + (sh - oc) + '</span><br />');
document.write('<span>' + oc + ' - ' + si + ' = ' + (oc - si) + '</span><span class="span2">' + si + ' - ' + oc + ' = ' + (si - oc) + '</span><br />');
document.write('<span>' + oc + ' - ' + sj + ' = ' + (oc - sj) + '</span><span class="span2">' + sj + ' - ' + oc + ' = ' + (sj - oc) + '</span><br />');
document.write('<span>' + oc + ' - ' + sk + ' = ' + (oc - sk) + '</span><span class="span2">' + sk + ' - ' + oc + ' = ' + (sk - oc) + '</span><br />');
document.write('<span>' + oc + ' - ' + sl + ' = ' + (oc - sl) + '</span><span class="span2">' + sl + ' - ' + oc + ' = ' + (sl - oc) + '</span><br />');
document.write('<span>' + oc + ' - ' + sm + ' = ' + (oc - sm) + '</span><span class="span2">' + sm + ' - ' + oc + ' = ' + (sm - oc) + '</span><br />');
document.write('<span>' + oc + ' - ' + sn + ' = ' + (oc - sn) + '</span><span class="span2">' + sn + ' - ' + oc + ' = ' + (sn - oc) + '</span><br />');
document.write('<span>' + oc + ' - ' + aa + ' = ' + (oc - aa) + '</span><span class="span2">' + aa + ' - ' + oc + ' = ' + (aa - oc) + '</span><br />');
document.write('<span>' + oc + ' - ' + ac + ' = ' + (oc - ac) + '</span><span class="span2">' + ac + ' - ' + oc + ' = ' + (ac - oc) + '</span><br />');
document.write('<span>' + oc + ' - ' + oc + ' = ' + (oc - oc) + '</span><span class="span2">' + oc + ' - ' + oc + ' = ' + (oc - oc) + '</span></div>');
document.write('<hr style="clear: left;" />');
document.write('某个运算数是NaN:<br />');
document.write('<span>' + nd + ' - ' + ua + ' = ' + (nd - ua) + '</span><span class="span1">' + ua + ' - ' + nd + ' = ' + (ua - nd) + '</span><br />');
document.write('<span>' + nd + ' - ' + la + ' = ' + (nd - la) + '</span><span class="span1">' + la + ' - ' + nd + ' = ' + (la - nd) + '</span><br />');
document.write('<span>' + nd + ' - ' + ba + ' = ' + (nd - ba) + '</span><span class="span1">' + ba + ' - ' + nd + ' = ' + (ba - nd) + '</span><br />');
document.write('<span>' + nd + ' - ' + bb + ' = ' + (nd - bb) + '</span><span class="span1">' + bb + ' - ' + nd + ' = ' + (bb - nd) + '</span><br />');
document.write('<span>' + nd + ' - ' + bc + ' = ' + (nd - bc) + '</span><span class="span1">' + bc + ' - ' + nd + ' = ' + (bc - nd) + '</span><br />');
document.write('<span>' + nd + ' - ' + bd + ' = ' + (nd - bd) + '</span><span class="span1">' + bd + ' - ' + nd + ' = ' + (bd - nd) + '</span><br />');
document.write('<span>' + nd + ' - ' + na + ' = ' + (nd - na) + '</span><span class="span1">' + na + ' - ' + nd + ' = ' + (na - nd) + '</span><br />');
document.write('<span>' + nd + ' - ' + nb + ' = ' + (nd - nb) + '</span><span class="span1">' + nb + ' - ' + nd + ' = ' + (nb - nd) + '</span><br />');
document.write('<span>' + nd + ' - ' + nc + ' = ' + (nd - nc) + '</span><span class="span1">' + nc + ' - ' + nd + ' = ' + (nc - nd) + '</span><br />');
document.write('<span>' + nd + ' - ' + nd + ' = ' + (nd - nd) + '</span><span class="span1">' + nd + ' - ' + nd + ' = ' + (nd - nd) + '</span><br />');
document.write('<span>' + nd + ' - ' + ne + ' = ' + (nd - ne) + '</span><span class="span1">' + ne + ' - ' + nd + ' = ' + (ne - nd) + '</span><br />');
document.write('<span>' + nd + ' - ' + nf + ' = ' + (nd - nf) + '</span><span class="span1">' + nf + ' - ' + nd + ' = ' + (nf - nd) + '</span><br />');
document.write('<span>' + nd + ' - ' + ng + ' = ' + (nd - ng) + '</span><span class="span1">' + ng + ' - ' + nd + ' = ' + (ng - nd) + '</span><br />');
document.write('<span>' + nd + ' - ' + nh + ' = ' + (nd - nh) + '</span><span class="span1">' + nh + ' - ' + nd + ' = ' + (nh - nd) + '</span><br />');
document.write('<span>' + nd + ' - ' + sa + ' = ' + (nd - sa) + '</span><span class="span1">' + sa + ' - ' + nd + ' = ' + (sa - nd) + '</span><br />');
document.write('<span>' + nd + ' - ' + sb + ' = ' + (nd - sb) + '</span><span class="span1">' + sb + ' - ' + nd + ' = ' + (sb - nd) + '</span><br />');
document.write('<span>' + nd + ' - ' + sc + ' = ' + (nd - sc) + '</span><span class="span1">' + sc + ' - ' + nd + ' = ' + (sc - nd) + '</span><br />');
document.write('<span>' + nd + ' - ' + sd + ' = ' + (nd - sd) + '</span><span class="span1">' + sd + ' - ' + nd + ' = ' + (sd - nd) + '</span><br />');
document.write('<span>' + nd + ' - ' + se + ' = ' + (nd - se) + '</span><span class="span1">' + se + ' - ' + nd + ' = ' + (se - nd) + '</span><br />');
document.write('<span>' + nd + ' - ' + sf + ' = ' + (nd - sf) + '</span><span class="span1">' + sf + ' - ' + nd + ' = ' + (sf - nd) + '</span><br />');
document.write('<span>' + nd + ' - ' + sg + ' = ' + (nd - sg) + '</span><span class="span1">' + sg + ' - ' + nd + ' = ' + (sg - nd) + '</span><br />');
document.write('<span>' + nd + ' - ' + sh + ' = ' + (nd - sh) + '</span><span class="span1">' + sh + ' - ' + nd + ' = ' + (sh - nd) + '</span><br />');
document.write('<span>' + nd + ' - ' + si + ' = ' + (nd - si) + '</span><span class="span1">' + si + ' - ' + nd + ' = ' + (si - nd) + '</span><br />');
document.write('<span>' + nd + ' - ' + sj + ' = ' + (nd - sj) + '</span><span class="span1">' + sj + ' - ' + nd + ' = ' + (sj - nd) + '</span><br />');
document.write('<span>' + nd + ' - ' + sk + ' = ' + (nd - sk) + '</span><span class="span1">' + sk + ' - ' + nd + ' = ' + (sk - nd) + '</span><br />');
document.write('<span>' + nd + ' - ' + sl + ' = ' + (nd - sl) + '</span><span class="span1">' + sl + ' - ' + nd + ' = ' + (sl - nd) + '</span><br />');
document.write('<span>' + nd + ' - ' + sm + ' = ' + (nd - sm) + '</span><span class="span1">' + sm + ' - ' + nd + ' = ' + (sm - nd) + '</span><br />');
document.write('<span>' + nd + ' - ' + sn + ' = ' + (nd - sn) + '</span><span class="span1">' + sn + ' - ' + nd + ' = ' + (sn - nd) + '</span><br />');
document.write('<span>' + nd + ' - ' + aa + ' = ' + (nd - aa) + '</span><span class="span1">' + aa + ' - ' + nd + ' = ' + (aa - nd) + '</span><br />');
document.write('<span>' + nd + ' - ' + ac + ' = ' + (nd - ac) + '</span><span class="span1">' + ac + ' - ' + nd + ' = ' + (ac - nd) + '</span><hr />');
document.write('某个运算数是undefined:<br />');
document.write('<span>' + ua + ' - ' + ua + ' = ' + (ua - ua) + '</span><span class="span1">' + ua + ' - ' + ua + ' = ' + (ua - ua) + '</span><br />');
document.write('<span>' + ua + ' - ' + la + ' = ' + (ua - la) + '</span><span class="span1">' + la + ' - ' + ua + ' = ' + (la - ua) + '</span><br />');
document.write('<span>' + ua + ' - ' + ba + ' = ' + (ua - ba) + '</span><span class="span1">' + ba + ' - ' + ua + ' = ' + (ba - ua) + '</span><br />');
document.write('<span>' + ua + ' - ' + bb + ' = ' + (ua - bb) + '</span><span class="span1">' + bb + ' - ' + ua + ' = ' + (bb - ua) + '</span><br />');
document.write('<span>' + ua + ' - ' + bc + ' = ' + (ua - bc) + '</span><span class="span1">' + bc + ' - ' + ua + ' = ' + (bc - ua) + '</span><br />');
document.write('<span>' + ua + ' - ' + bd + ' = ' + (ua - bd) + '</span><span class="span1">' + bd + ' - ' + ua + ' = ' + (bd - ua) + '</span><br />');
document.write('<span>' + ua + ' - ' + na + ' = ' + (ua - na) + '</span><span class="span1">' + na + ' - ' + ua + ' = ' + (na - ua) + '</span><br />');
document.write('<span>' + ua + ' - ' + nb + ' = ' + (ua - nb) + '</span><span class="span1">' + nb + ' - ' + ua + ' = ' + (nb - ua) + '</span><br />');
document.write('<span>' + ua + ' - ' + nc + ' = ' + (ua - nc) + '</span><span class="span1">' + nc + ' - ' + ua + ' = ' + (nc - ua) + '</span><br />');
document.write('<span>' + ua + ' - ' + ne + ' = ' + (ua - ne) + '</span><span class="span1">' + ne + ' - ' + ua + ' = ' + (ne - ua) + '</span><br />');
document.write('<span>' + ua + ' - ' + nf + ' = ' + (ua - nf) + '</span><span class="span1">' + nf + ' - ' + ua + ' = ' + (nf - ua) + '</span><br />');
document.write('<span>' + ua + ' - ' + ng + ' = ' + (ua - ng) + '</span><span class="span1">' + ng + ' - ' + ua + ' = ' + (ng - ua) + '</span><br />');
document.write('<span>' + ua + ' - ' + nh + ' = ' + (ua - nh) + '</span><span class="span1">' + nh + ' - ' + ua + ' = ' + (nh - ua) + '</span><br />');
document.write('<span>' + ua + ' - ' + sa + ' = ' + (ua - sa) + '</span><span class="span1">' + sa + ' - ' + ua + ' = ' + (sa - ua) + '</span><br />');
document.write('<span>' + ua + ' - ' + sb + ' = ' + (ua - sb) + '</span><span class="span1">' + sb + ' - ' + ua + ' = ' + (sb - ua) + '</span><br />');
document.write('<span>' + ua + ' - ' + sc + ' = ' + (ua - sc) + '</span><span class="span1">' + sc + ' - ' + ua + ' = ' + (sc - ua) + '</span><br />');
document.write('<span>' + ua + ' - ' + sd + ' = ' + (ua - sd) + '</span><span class="span1">' + sd + ' - ' + ua + ' = ' + (sd - ua) + '</span><br />');
document.write('<span>' + ua + ' - ' + se + ' = ' + (ua - se) + '</span><span class="span1">' + se + ' - ' + ua + ' = ' + (se - ua) + '</span><br />');
document.write('<span>' + ua + ' - ' + sf + ' = ' + (ua - sf) + '</span><span class="span1">' + sf + ' - ' + ua + ' = ' + (sf - ua) + '</span><br />');
document.write('<span>' + ua + ' - ' + sg + ' = ' + (ua - sg) + '</span><span class="span1">' + sg + ' - ' + ua + ' = ' + (sg - ua) + '</span><br />');
document.write('<span>' + ua + ' - ' + sh + ' = ' + (ua - sh) + '</span><span class="span1">' + sh + ' - ' + ua + ' = ' + (sh - ua) + '</span><br />');
document.write('<span>' + ua + ' - ' + si + ' = ' + (ua - si) + '</span><span class="span1">' + si + ' - ' + ua + ' = ' + (si - ua) + '</span><br />');
document.write('<span>' + ua + ' - ' + sj + ' = ' + (ua - sj) + '</span><span class="span1">' + sj + ' - ' + ua + ' = ' + (sj - ua) + '</span><br />');
document.write('<span>' + ua + ' - ' + sk + ' = ' + (ua - sk) + '</span><span class="span1">' + sk + ' - ' + ua + ' = ' + (sk - ua) + '</span><br />');
document.write('<span>' + ua + ' - ' + sl + ' = ' + (ua - sl) + '</span><span class="span1">' + sl + ' - ' + ua + ' = ' + (sl - ua) + '</span><br />');
document.write('<span>' + ua + ' - ' + sm + ' = ' + (ua - sm) + '</span><span class="span1">' + sm + ' - ' + ua + ' = ' + (sm - ua) + '</span><br />');
document.write('<span>' + ua + ' - ' + sn + ' = ' + (ua - sn) + '</span><span class="span1">' + sn + ' - ' + ua + ' = ' + (sn - ua) + '</span><br />');
document.write('<span>' + ua + ' - ' + aa + ' = ' + (ua - aa) + '</span><span class="span1">' + aa + ' - ' + ua + ' = ' + (aa - ua) + '</span><br />');
document.write('<span>' + ua + ' - ' + ac + ' = ' + (ua - ac) + '</span><span class="span1">' + ac + ' - ' + ua + ' = ' + (ac - ua) + '</span><hr />');
document.write('某个运算数是不能完整转换为数字的字符串:<br />');
document.write('<span>' + sb + ' - ' + la + ' = ' + (sb - la) + '</span><span class="span1">' + la + ' - ' + sb + ' = ' + (la - sb) + '</span><br />');
document.write('<span>' + sb + ' - ' + ba + ' = ' + (sb - ba) + '</span><span class="span1">' + ba + ' - ' + sb + ' = ' + (ba - sb) + '</span><br />');
document.write('<span>' + sb + ' - ' + bb + ' = ' + (sb - bb) + '</span><span class="span1">' + bb + ' - ' + sb + ' = ' + (bb - sb) + '</span><br />');
document.write('<span>' + sb + ' - ' + bc + ' = ' + (sb - bc) + '</span><span class="span1">' + bc + ' - ' + sb + ' = ' + (bc - sb) + '</span><br />');
document.write('<span>' + sb + ' - ' + bd + ' = ' + (sb - bd) + '</span><span class="span1">' + bd + ' - ' + sb + ' = ' + (bd - sb) + '</span><br />');
document.write('<span>' + sb + ' - ' + na + ' = ' + (sb - na) + '</span><span class="span1">' + na + ' - ' + sb + ' = ' + (na - sb) + '</span><br />');
document.write('<span>' + sb + ' - ' + nb + ' = ' + (sb - nb) + '</span><span class="span1">' + nb + ' - ' + sb + ' = ' + (nb - sb) + '</span><br />');
document.write('<span>' + sb + ' - ' + nc + ' = ' + (sb - nc) + '</span><span class="span1">' + nc + ' - ' + sb + ' = ' + (nc - sb) + '</span><br />');
document.write('<span>' + sb + ' - ' + ne + ' = ' + (sb - ne) + '</span><span class="span1">' + ne + ' - ' + sb + ' = ' + (ne - sb) + '</span><br />');
document.write('<span>' + sb + ' - ' + nf + ' = ' + (sb - nf) + '</span><span class="span1">' + nf + ' - ' + sb + ' = ' + (nf - sb) + '</span><br />');
document.write('<span>' + sb + ' - ' + ng + ' = ' + (sb - ng) + '</span><span class="span1">' + ng + ' - ' + sb + ' = ' + (ng - sb) + '</span><br />');
document.write('<span>' + sb + ' - ' + nh + ' = ' + (sb - nh) + '</span><span class="span1">' + nh + ' - ' + sb + ' = ' + (nh - sb) + '</span><br />');
document.write('<span>' + sb + ' - ' + sa + ' = ' + (sb - sa) + '</span><span class="span1">' + sa + ' - ' + sb + ' = ' + (sa - sb) + '</span><br />');
document.write('<span>' + sb + ' - ' + sb + ' = ' + (sb - sb) + '</span><span class="span1">' + sb + ' - ' + sb + ' = ' + (sb - sb) + '</span><br />');
document.write('<span>' + sb + ' - ' + sc + ' = ' + (sb - sc) + '</span><span class="span1">' + sc + ' - ' + sb + ' = ' + (sc - sb) + '</span><br />');
document.write('<span>' + sb + ' - ' + sd + ' = ' + (sb - sd) + '</span><span class="span1">' + sd + ' - ' + sb + ' = ' + (sd - sb) + '</span><br />');
document.write('<span>' + sb + ' - ' + se + ' = ' + (sb - se) + '</span><span class="span1">' + se + ' - ' + sb + ' = ' + (se - sb) + '</span><br />');
document.write('<span>' + sb + ' - ' + sf + ' = ' + (sb - sf) + '</span><span class="span1">' + sf + ' - ' + sb + ' = ' + (sf - sb) + '</span><br />');
document.write('<span>' + sb + ' - ' + sg + ' = ' + (sb - sg) + '</span><span class="span1">' + sg + ' - ' + sb + ' = ' + (sg - sb) + '</span><br />');
document.write('<span>' + sb + ' - ' + sh + ' = ' + (sb - sh) + '</span><span class="span1">' + sh + ' - ' + sb + ' = ' + (sh - sb) + '</span><br />');
document.write('<span>' + sb + ' - ' + si + ' = ' + (sb - si) + '</span><span class="span1">' + si + ' - ' + sb + ' = ' + (si - sb) + '</span><br />');
document.write('<span>' + sb + ' - ' + sj + ' = ' + (sb - sj) + '</span><span class="span1">' + sj + ' - ' + sb + ' = ' + (sj - sb) + '</span><br />');
document.write('<span>' + sb + ' - ' + sk + ' = ' + (sb - sk) + '</span><span class="span1">' + sk + ' - ' + sb + ' = ' + (sk - sb) + '</span><br />');
document.write('<span>' + sb + ' - ' + sl + ' = ' + (sb - sl) + '</span><span class="span1">' + sl + ' - ' + sb + ' = ' + (sl - sb) + '</span><br />');
document.write('<span>' + sb + ' - ' + sm + ' = ' + (sb - sm) + '</span><span class="span1">' + sm + ' - ' + sb + ' = ' + (sm - sb) + '</span><br />');
document.write('<span>' + sb + ' - ' + sn + ' = ' + (sb - sn) + '</span><span class="span1">' + sn + ' - ' + sb + ' = ' + (sn - sb) + '</span><br />');
document.write('<span>' + sb + ' - ' + aa + ' = ' + (sb - aa) + '</span><span class="span1">' + aa + ' - ' + sb + ' = ' + (aa - sb) + '</span><br />');
document.write('<span>' + sb + ' - ' + ac + ' = ' + (sb - ac) + '</span><span class="span1">' + ac + ' - ' + sb + ' = ' + (ac - sb) + '</span><hr />');
document.write('某个运算数是"NaN":<br />');
document.write('<span>' + sl + ' - ' + la + ' = ' + (sl - la) + '</span><span class="span1">' + la + ' - ' + sl + ' = ' + (la - sl) + '</span><br />');
document.write('<span>' + sl + ' - ' + ba + ' = ' + (sl - ba) + '</span><span class="span1">' + ba + ' - ' + sl + ' = ' + (ba - sl) + '</span><br />');
document.write('<span>' + sl + ' - ' + bb + ' = ' + (sl - bb) + '</span><span class="span1">' + bb + ' - ' + sl + ' = ' + (bb - sl) + '</span><br />');
document.write('<span>' + sl + ' - ' + bc + ' = ' + (sl - bc) + '</span><span class="span1">' + bc + ' - ' + sl + ' = ' + (bc - sl) + '</span><br />');
document.write('<span>' + sl + ' - ' + bd + ' = ' + (sl - bd) + '</span><span class="span1">' + bd + ' - ' + sl + ' = ' + (bd - sl) + '</span><br />');
document.write('<span>' + sl + ' - ' + na + ' = ' + (sl - na) + '</span><span class="span1">' + na + ' - ' + sl + ' = ' + (na - sl) + '</span><br />');
document.write('<span>' + sl + ' - ' + nb + ' = ' + (sl - nb) + '</span><span class="span1">' + nb + ' - ' + sl + ' = ' + (nb - sl) + '</span><br />');
document.write('<span>' + sl + ' - ' + nc + ' = ' + (sl - nc) + '</span><span class="span1">' + nc + ' - ' + sl + ' = ' + (nc - sl) + '</span><br />');
document.write('<span>' + sl + ' - ' + ne + ' = ' + (sl - ne) + '</span><span class="span1">' + ne + ' - ' + sl + ' = ' + (ne - sl) + '</span><br />');
document.write('<span>' + sl + ' - ' + nf + ' = ' + (sl - nf) + '</span><span class="span1">' + nf + ' - ' + sl + ' = ' + (nf - sl) + '</span><br />');
document.write('<span>' + sl + ' - ' + ng + ' = ' + (sl - ng) + '</span><span class="span1">' + ng + ' - ' + sl + ' = ' + (ng - sl) + '</span><br />');
document.write('<span>' + sl + ' - ' + nh + ' = ' + (sl - nh) + '</span><span class="span1">' + nh + ' - ' + sl + ' = ' + (nh - sl) + '</span><br />');
document.write('<span>' + sl + ' - ' + sa + ' = ' + (sl - sa) + '</span><span class="span1">' + sa + ' - ' + sl + ' = ' + (sa - sl) + '</span><br />');
document.write('<span>' + sl + ' - ' + sc + ' = ' + (sl - sc) + '</span><span class="span1">' + sc + ' - ' + sl + ' = ' + (sc - sl) + '</span><br />');
document.write('<span>' + sl + ' - ' + sd + ' = ' + (sl - sd) + '</span><span class="span1">' + sd + ' - ' + sl + ' = ' + (sd - sl) + '</span><br />');
document.write('<span>' + sl + ' - ' + se + ' = ' + (sl - se) + '</span><span class="span1">' + se + ' - ' + sl + ' = ' + (se - sl) + '</span><br />');
document.write('<span>' + sl + ' - ' + sf + ' = ' + (sl - sf) + '</span><span class="span1">' + sf + ' - ' + sl + ' = ' + (sf - sl) + '</span><br />');
document.write('<span>' + sl + ' - ' + sg + ' = ' + (sl - sg) + '</span><span class="span1">' + sg + ' - ' + sl + ' = ' + (sg - sl) + '</span><br />');
document.write('<span>' + sl + ' - ' + sh + ' = ' + (sl - sh) + '</span><span class="span1">' + sh + ' - ' + sl + ' = ' + (sh - sl) + '</span><br />');
document.write('<span>' + sl + ' - ' + si + ' = ' + (sl - si) + '</span><span class="span1">' + si + ' - ' + sl + ' = ' + (si - sl) + '</span><br />');
document.write('<span>' + sl + ' - ' + sj + ' = ' + (sl - sj) + '</span><span class="span1">' + sj + ' - ' + sl + ' = ' + (sj - sl) + '</span><br />');
document.write('<span>' + sl + ' - ' + sk + ' = ' + (sl - sk) + '</span><span class="span1">' + sk + ' - ' + sl + ' = ' + (sk - sl) + '</span><br />');
document.write('<span>' + sl + ' - ' + sl + ' = ' + (sl - sl) + '</span><span class="span1">' + sl + ' - ' + sl + ' = ' + (sl - sl) + '</span><br />');
document.write('<span>' + sl + ' - ' + sm + ' = ' + (sl - sm) + '</span><span class="span1">' + sm + ' - ' + sl + ' = ' + (sm - sl) + '</span><br />');
document.write('<span>' + sl + ' - ' + sn + ' = ' + (sl - sn) + '</span><span class="span1">' + sn + ' - ' + sl + ' = ' + (sn - sl) + '</span><br />');
document.write('<span>' + sl + ' - ' + aa + ' = ' + (sl - aa) + '</span><span class="span1">' + aa + ' - ' + sl + ' = ' + (aa - sl) + '</span><br />');
document.write('<span>' + sl + ' - ' + ac + ' = ' + (sl - ac) + '</span><span class="span1">' + ac + ' - ' + sl + ' = ' + (ac - sl) + '</span><hr />');
document.write('某个运算数是null:<br />');
document.write('<span>' + la + ' - ' + la + ' = ' + (la - la) + '</span><span class="span1">' + la + ' - ' + la + ' = ' + (la - la) + '</span><br />');
document.write('<span>' + la + ' - ' + ba + ' = ' + (la - ba) + '</span><span class="span1">' + ba + ' - ' + la + ' = ' + (ba - la) + '</span><br />');
document.write('<span>' + la + ' - ' + bb + ' = ' + (la - bb) + '</span><span class="span1">' + bb + ' - ' + la + ' = ' + (bb - la) + '</span><br />');
document.write('<span>' + la + ' - ' + bc + ' = ' + (la - bc) + '</span><span class="span1">' + bc + ' - ' + la + ' = ' + (bc - la) + '</span><br />');
document.write('<span>' + la + ' - ' + bd + ' = ' + (la - bd) + '</span><span class="span1">' + bd + ' - ' + la + ' = ' + (bd - la) + '</span><br />');
document.write('<span>' + la + ' - ' + na + ' = ' + (la - na) + '</span><span class="span1">' + na + ' - ' + la + ' = ' + (na - la) + '</span><br />');
document.write('<span>' + la + ' - ' + nb + ' = ' + (la - nb) + '</span><span class="span1">' + nb + ' - ' + la + ' = ' + (nb - la) + '</span><br />');
document.write('<span>' + la + ' - ' + nc + ' = ' + (la - nc) + '</span><span class="span1">' + nc + ' - ' + la + ' = ' + (nc - la) + '</span><br />');
document.write('<span>' + la + ' - ' + ng + ' = ' + (la - ng) + '</span><span class="span1">' + ng + ' - ' + la + ' = ' + (ng - la) + '</span><br />');
document.write('<span>' + la + ' - ' + nh + ' = ' + (la - nh) + '</span><span class="span1">' + nh + ' - ' + la + ' = ' + (nh - la) + '</span><br />');
document.write('<span>' + la + ' - ' + sa + ' = ' + (la - sa) + '</span><span class="span1">' + sa + ' - ' + la + ' = ' + (sa - la) + '</span><br />');
document.write('<span>' + la + ' - ' + sc + ' = ' + (la - sc) + '</span><span class="span1">' + sc + ' - ' + la + ' = ' + (sc - la) + '</span><br />');
document.write('<span>' + la + ' - ' + sd + ' = ' + (la - sd) + '</span><span class="span1">' + sd + ' - ' + la + ' = ' + (sd - la) + '</span><br />');
document.write('<span>' + la + ' - ' + se + ' = ' + (la - se) + '</span><span class="span1">' + se + ' - ' + la + ' = ' + (se - la) + '</span><br />');
document.write('<span>' + la + ' - ' + sf + ' = ' + (la - sf) + '</span><span class="span1">' + sf + ' - ' + la + ' = ' + (sf - la) + '</span><br />');
document.write('<span>' + la + ' - ' + sg + ' = ' + (la - sg) + '</span><span class="span1">' + sg + ' - ' + la + ' = ' + (sg - la) + '</span><br />');
document.write('<span>' + la + ' - ' + sh + ' = ' + (la - sh) + '</span><span class="span1">' + sh + ' - ' + la + ' = ' + (sh - la) + '</span><br />');
document.write('<span>' + la + ' - ' + si + ' = ' + (la - si) + '</span><span class="span1">' + si + ' - ' + la + ' = ' + (si - la) + '</span><br />');
document.write('<span>' + la + ' - ' + sm + ' = ' + (la - sm) + '</span><span class="span1">' + sm + ' - ' + la + ' = ' + (sm - la) + '</span><br />');
document.write('<span>' + la + ' - ' + sn + ' = ' + (la - sn) + '</span><span class="span1">' + sn + ' - ' + la + ' = ' + (sn - la) + '</span><br />');
document.write('<span>' + la + ' - ' + aa + ' = ' + (la - aa) + '</span><span class="span1">' + aa + ' - ' + la + ' = ' + (aa - la) + '</span><br />');
document.write('<span>' + la + ' - ' + ac + ' = ' + (la - ac) + '</span><span class="span1">' + ac + ' - ' + la + ' = ' + (ac - la) + '</span><hr />');
document.write('某个运算数是空字符串:<br />');
document.write('<div style="float: left;"');
document.write('<span>' + sa + ' - ' + ba + ' = ' + (sa - ba) + '</span><span class="span1">' + ba + ' - ' + sa + ' = ' + (ba - sa) + '</span><br />');
document.write('<span>' + sa + ' - ' + bb + ' = ' + (sa - bb) + '</span><span class="span1">' + bb + ' - ' + sa + ' = ' + (bb - sa) + '</span><br />');
document.write('<span>' + sa + ' - ' + bc + ' = ' + (sa - bc) + '</span><span class="span1">' + bc + ' - ' + sa + ' = ' + (bc - sa) + '</span><br />');
document.write('<span>' + sa + ' - ' + bd + ' = ' + (sa - bd) + '</span><span class="span1">' + bd + ' - ' + sa + ' = ' + (bd - sa) + '</span><br />');
document.write('<span>' + sa + ' - ' + na + ' = ' + (sa - na) + '</span><span class="span1">' + na + ' - ' + sa + ' = ' + (na - sa) + '</span><br />');
document.write('<span>' + sa + ' - ' + nb + ' = ' + (sa - nb) + '</span><span class="span1">' + nb + ' - ' + sa + ' = ' + (nb - sa) + '</span><br />');
document.write('<span>' + sa + ' - ' + nc + ' = ' + (sa - nc) + '</span><span class="span1">' + nc + ' - ' + sa + ' = ' + (nc - sa) + '</span><br />');
document.write('<span>' + sa + ' - ' + ng + ' = ' + (sa - ng) + '</span><span class="span1">' + ng + ' - ' + sa + ' = ' + (ng - sa) + '</span><br />');
document.write('<span>' + sa + ' - ' + nh + ' = ' + (sa - nh) + '</span><span class="span1">' + nh + ' - ' + sa + ' = ' + (nh - sa) + '</span><br />');
document.write('<span>' + sa + ' - ' + sa + ' = ' + (sa - sa) + '</span><span class="span1">' + sa + ' - ' + sa + ' = ' + (sa - sa) + '</span><br />');
document.write('<span>' + sa + ' - ' + sc + ' = ' + (sa - sc) + '</span><span class="span1">' + sc + ' - ' + sa + ' = ' + (sc - sa) + '</span><br />');
document.write('<span>' + sa + ' - ' + sd + ' = ' + (sa - sd) + '</span><span class="span1">' + sd + ' - ' + sa + ' = ' + (sd - sa) + '</span><br />');
document.write('<span>' + sa + ' - ' + se + ' = ' + (sa - se) + '</span><span class="span1">' + se + ' - ' + sa + ' = ' + (se - sa) + '</span><br />');
document.write('<span>' + sa + ' - ' + sf + ' = ' + (sa - sf) + '</span><span class="span1">' + sf + ' - ' + sa + ' = ' + (sf - sa) + '</span><br />');
document.write('<span>' + sa + ' - ' + sg + ' = ' + (sa - sg) + '</span><span class="span1">' + sg + ' - ' + sa + ' = ' + (sg - sa) + '</span><br />');
document.write('<span>' + sa + ' - ' + sh + ' = ' + (sa - sh) + '</span><span class="span1">' + sh + ' - ' + sa + ' = ' + (sh - sa) + '</span><br />');
document.write('<span>' + sa + ' - ' + si + ' = ' + (sa - si) + '</span><span class="span1">' + si + ' - ' + sa + ' = ' + (si - sa) + '</span><br />');
document.write('<span>' + sa + ' - ' + sm + ' = ' + (sa - sm) + '</span><span class="span1">' + sm + ' - ' + sa + ' = ' + (sm - sa) + '</span><br />');
document.write('<span>' + sa + ' - ' + sn + ' = ' + (sa - sn) + '</span><span class="span1">' + sn + ' - ' + sa + ' = ' + (sn - sa) + '</span><br />');
document.write('<span>' + sa + ' - ' + aa + ' = ' + (sa - aa) + '</span><span class="span1">' + aa + ' - ' + sa + ' = ' + (aa - sa) + '</span><br />');
document.write('<span>' + sa + ' - ' + ac + ' = ' + (sa - ac) + '</span><span class="span1">' + ac + ' - ' + sa + ' = ' + (ac - sa) + '</span></div>');
document.write('<div style="float: left; margin-left: 660px;"');
document.write('<span>' + sm + ' - ' + ba + ' = ' + (sm - ba) + '</span><span class="span2">' + ba + ' - ' + sm + ' = ' + (ba - sm) + '</span><br />');
document.write('<span>' + sm + ' - ' + bb + ' = ' + (sm - bb) + '</span><span class="span2">' + bb + ' - ' + sm + ' = ' + (bb - sm) + '</span><br />');
document.write('<span>' + sm + ' - ' + bc + ' = ' + (sm - bc) + '</span><span class="span2">' + bc + ' - ' + sm + ' = ' + (bc - sm) + '</span><br />');
document.write('<span>' + sm + ' - ' + bd + ' = ' + (sm - bd) + '</span><span class="span2">' + bd + ' - ' + sm + ' = ' + (bd - sm) + '</span><br />');
document.write('<span>' + sm + ' - ' + na + ' = ' + (sm - na) + '</span><span class="span2">' + na + ' - ' + sm + ' = ' + (na - sm) + '</span><br />');
document.write('<span>' + sm + ' - ' + nb + ' = ' + (sm - nb) + '</span><span class="span2">' + nb + ' - ' + sm + ' = ' + (nb - sm) + '</span><br />');
document.write('<span>' + sm + ' - ' + nc + ' = ' + (sm - nc) + '</span><span class="span2">' + nc + ' - ' + sm + ' = ' + (nc - sm) + '</span><br />');
document.write('<span>' + sm + ' - ' + ng + ' = ' + (sm - ng) + '</span><span class="span2">' + ng + ' - ' + sm + ' = ' + (ng - sm) + '</span><br />');
document.write('<span>' + sm + ' - ' + nh + ' = ' + (sm - nh) + '</span><span class="span2">' + nh + ' - ' + sm + ' = ' + (nh - sm) + '</span><br />');
document.write('<span>' + sm + ' - ' + sc + ' = ' + (sm - sc) + '</span><span class="span2">' + sc + ' - ' + sm + ' = ' + (sc - sm) + '</span><br />');
document.write('<span>' + sm + ' - ' + sd + ' = ' + (sm - sd) + '</span><span class="span2">' + sd + ' - ' + sm + ' = ' + (sd - sm) + '</span><br />');
document.write('<span>' + sm + ' - ' + se + ' = ' + (sm - se) + '</span><span class="span2">' + se + ' - ' + sm + ' = ' + (se - sm) + '</span><br />');
document.write('<span>' + sm + ' - ' + sf + ' = ' + (sm - sf) + '</span><span class="span2">' + sf + ' - ' + sm + ' = ' + (sf - sm) + '</span><br />');
document.write('<span>' + sm + ' - ' + sg + ' = ' + (sm - sg) + '</span><span class="span2">' + sg + ' - ' + sm + ' = ' + (sg - sm) + '</span><br />');
document.write('<span>' + sm + ' - ' + sh + ' = ' + (sm - sh) + '</span><span class="span2">' + sh + ' - ' + sm + ' = ' + (sh - sm) + '</span><br />');
document.write('<span>' + sm + ' - ' + si + ' = ' + (sm - si) + '</span><span class="span2">' + si + ' - ' + sm + ' = ' + (si - sm) + '</span><br />');
document.write('<span>' + sm + ' - ' + sm + ' = ' + (sm - sm) + '</span><span class="span2">' + sm + ' - ' + sm + ' = ' + (sm - sm) + '</span><br />');
document.write('<span>' + sm + ' - ' + sn + ' = ' + (sm - sn) + '</span><span class="span2">' + sn + ' - ' + sm + ' = ' + (sn - sm) + '</span><br />');
document.write('<span>' + sm + ' - ' + aa + ' = ' + (sm - aa) + '</span><span class="span2">' + aa + ' - ' + sm + ' = ' + (aa - sm) + '</span><br />');
document.write('<span>' + sm + ' - ' + ac + ' = ' + (sm - ac) + '</span><span class="span2">' + ac + ' - ' + sm + ' = ' + (ac - sm) + '</span></div>');
document.write('<hr style="clear: left;" />');
document.write('某个运算数是空数组:<br />');
document.write('<div style="float: left;"');
document.write('<span>' + aa + ' - ' + ba + ' = ' + (aa - ba) + '</span><span class="span1">' + ba + ' - ' + aa + ' = ' + (ba - aa) + '</span><br />');
document.write('<span>' + aa + ' - ' + bb + ' = ' + (aa - bb) + '</span><span class="span1">' + bb + ' - ' + aa + ' = ' + (bb - aa) + '</span><br />');
document.write('<span>' + aa + ' - ' + bc + ' = ' + (aa - bc) + '</span><span class="span1">' + bc + ' - ' + aa + ' = ' + (bc - aa) + '</span><br />');
document.write('<span>' + aa + ' - ' + bd + ' = ' + (aa - bd) + '</span><span class="span1">' + bd + ' - ' + aa + ' = ' + (bd - aa) + '</span><br />');
document.write('<span>' + aa + ' - ' + na + ' = ' + (aa - na) + '</span><span class="span1">' + na + ' - ' + aa + ' = ' + (na - aa) + '</span><br />');
document.write('<span>' + aa + ' - ' + nb + ' = ' + (aa - nb) + '</span><span class="span1">' + nb + ' - ' + aa + ' = ' + (nb - aa) + '</span><br />');
document.write('<span>' + aa + ' - ' + nc + ' = ' + (aa - nc) + '</span><span class="span1">' + nc + ' - ' + aa + ' = ' + (nc - aa) + '</span><br />');
document.write('<span>' + aa + ' - ' + ng + ' = ' + (aa - ng) + '</span><span class="span1">' + ng + ' - ' + aa + ' = ' + (ng - aa) + '</span><br />');
document.write('<span>' + aa + ' - ' + nh + ' = ' + (aa - nh) + '</span><span class="span1">' + nh + ' - ' + aa + ' = ' + (nh - aa) + '</span><br />');
document.write('<span>' + aa + ' - ' + sc + ' = ' + (aa - sc) + '</span><span class="span1">' + sc + ' - ' + aa + ' = ' + (sc - aa) + '</span><br />');
document.write('<span>' + aa + ' - ' + sd + ' = ' + (aa - sd) + '</span><span class="span1">' + sd + ' - ' + aa + ' = ' + (sd - aa) + '</span><br />');
document.write('<span>' + aa + ' - ' + se + ' = ' + (aa - se) + '</span><span class="span1">' + se + ' - ' + aa + ' = ' + (se - aa) + '</span><br />');
document.write('<span>' + aa + ' - ' + sf + ' = ' + (aa - sf) + '</span><span class="span1">' + sf + ' - ' + aa + ' = ' + (sf - aa) + '</span><br />');
document.write('<span>' + aa + ' - ' + sg + ' = ' + (aa - sg) + '</span><span class="span1">' + sg + ' - ' + aa + ' = ' + (sg - aa) + '</span><br />');
document.write('<span>' + aa + ' - ' + sh + ' = ' + (aa - sh) + '</span><span class="span1">' + sh + ' - ' + aa + ' = ' + (sh - aa) + '</span><br />');
document.write('<span>' + aa + ' - ' + si + ' = ' + (aa - si) + '</span><span class="span1">' + si + ' - ' + aa + ' = ' + (si - aa) + '</span><br />');
document.write('<span>' + aa + ' - ' + sn + ' = ' + (aa - sn) + '</span><span class="span1">' + sn + ' - ' + aa + ' = ' + (sn - aa) + '</span><br />');
document.write('<span>' + aa + ' - ' + aa + ' = ' + (aa - aa) + '</span><span class="span1">' + aa + ' - ' + aa + ' = ' + (aa - aa) + '</span><br />');
document.write('<span>' + aa + ' - ' + ac + ' = ' + (aa - ac) + '</span><span class="span1">' + ac + ' - ' + aa + ' = ' + (ac - aa) + '</span></div>');
document.write('<div style="float: left; margin-left: 660px;"');
document.write('<span>' + ac + ' - ' + ba + ' = ' + (ac - ba) + '</span><span class="span2">' + ba + ' - ' + ac + ' = ' + (ba - ac) + '</span><br />');
document.write('<span>' + ac + ' - ' + bb + ' = ' + (ac - bb) + '</span><span class="span2">' + bb + ' - ' + ac + ' = ' + (bb - ac) + '</span><br />');
document.write('<span>' + ac + ' - ' + bc + ' = ' + (ac - bc) + '</span><span class="span2">' + bc + ' - ' + ac + ' = ' + (bc - ac) + '</span><br />');
document.write('<span>' + ac + ' - ' + bd + ' = ' + (ac - bd) + '</span><span class="span2">' + bd + ' - ' + ac + ' = ' + (bd - ac) + '</span><br />');
document.write('<span>' + ac + ' - ' + na + ' = ' + (ac - na) + '</span><span class="span2">' + na + ' - ' + ac + ' = ' + (na - ac) + '</span><br />');
document.write('<span>' + ac + ' - ' + nb + ' = ' + (ac - nb) + '</span><span class="span2">' + nb + ' - ' + ac + ' = ' + (nb - ac) + '</span><br />');
document.write('<span>' + ac + ' - ' + nc + ' = ' + (ac - nc) + '</span><span class="span2">' + nc + ' - ' + ac + ' = ' + (nc - ac) + '</span><br />');
document.write('<span>' + ac + ' - ' + ng + ' = ' + (ac - ng) + '</span><span class="span2">' + ng + ' - ' + ac + ' = ' + (ng - ac) + '</span><br />');
document.write('<span>' + ac + ' - ' + nh + ' = ' + (ac - nh) + '</span><span class="span2">' + nh + ' - ' + ac + ' = ' + (nh - ac) + '</span><br />');
document.write('<span>' + ac + ' - ' + sc + ' = ' + (ac - sc) + '</span><span class="span2">' + sc + ' - ' + ac + ' = ' + (sc - ac) + '</span><br />');
document.write('<span>' + ac + ' - ' + sd + ' = ' + (ac - sd) + '</span><span class="span2">' + sd + ' - ' + ac + ' = ' + (sd - ac) + '</span><br />');
document.write('<span>' + ac + ' - ' + se + ' = ' + (ac - se) + '</span><span class="span2">' + se + ' - ' + ac + ' = ' + (se - ac) + '</span><br />');
document.write('<span>' + ac + ' - ' + sf + ' = ' + (ac - sf) + '</span><span class="span2">' + sf + ' - ' + ac + ' = ' + (sf - ac) + '</span><br />');
document.write('<span>' + ac + ' - ' + sg + ' = ' + (ac - sg) + '</span><span class="span2">' + sg + ' - ' + ac + ' = ' + (sg - ac) + '</span><br />');
document.write('<span>' + ac + ' - ' + sh + ' = ' + (ac - sh) + '</span><span class="span2">' + sh + ' - ' + ac + ' = ' + (sh - ac) + '</span><br />');
document.write('<span>' + ac + ' - ' + si + ' = ' + (ac - si) + '</span><span class="span2">' + si + ' - ' + ac + ' = ' + (si - ac) + '</span><br />');
document.write('<span>' + ac + ' - ' + sn + ' = ' + (ac - sn) + '</span><span class="span2">' + sn + ' - ' + ac + ' = ' + (sn - ac) + '</span><br />');
document.write('<span>' + ac + ' - ' + aa + ' = ' + (ac - aa) + '</span><span class="span2">' + aa + ' - ' + ac + ' = ' + (aa - ac) + '</span><br />');
document.write('<span>' + ac + ' - ' + ac + ' = ' + (ac - ac) + '</span><span class="span2">' + ac + ' - ' + ac + ' = ' + (ac - ac) + '</span></div>');
document.write('<hr style="clear: left;" />');
document.write('某个运算数是可完整转为数字的字符串:<br />');
document.write('<div style="float: left;"');
document.write('<span>' + sf + ' - ' + ba + ' = ' + (sf - ba) + '</span><span class="span1">' + ba + ' - ' + sf + ' = ' + (ba - sf) + '</span><br />');
document.write('<span>' + sf + ' - ' + bb + ' = ' + (sf - bb) + '</span><span class="span1">' + bb + ' - ' + sf + ' = ' + (bb - sf) + '</span><br />');
document.write('<span>' + sf + ' - ' + bc + ' = ' + (sf - bc) + '</span><span class="span1">' + bc + ' - ' + sf + ' = ' + (bc - sf) + '</span><br />');
document.write('<span>' + sf + ' - ' + bd + ' = ' + (sf - bd) + '</span><span class="span1">' + bd + ' - ' + sf + ' = ' + (bd - sf) + '</span><br />');
document.write('<span>' + sf + ' - ' + na + ' = ' + (sf - na) + '</span><span class="span1">' + na + ' - ' + sf + ' = ' + (na - sf) + '</span><br />');
document.write('<span>' + sf + ' - ' + nb + ' = ' + (sf - nb) + '</span><span class="span1">' + nb + ' - ' + sf + ' = ' + (nb - sf) + '</span><br />');
document.write('<span>' + sf + ' - ' + nc + ' = ' + (sf - nc) + '</span><span class="span1">' + nc + ' - ' + sf + ' = ' + (nc - sf) + '</span><br />');
document.write('<span>' + sf + ' - ' + ng + ' = ' + (sf - ng) + '</span><span class="span1">' + ng + ' - ' + sf + ' = ' + (ng - sf) + '</span><br />');
document.write('<span>' + sf + ' - ' + nh + ' = ' + (sf - nh) + '</span><span class="span1">' + nh + ' - ' + sf + ' = ' + (nh - sf) + '</span><br />');
document.write('<span>' + sf + ' - ' + sc + ' = ' + (sf - sc) + '</span><span class="span1">' + sc + ' - ' + sf + ' = ' + (sc - sf) + '</span><br />');
document.write('<span>' + sf + ' - ' + sd + ' = ' + (sf - sd) + '</span><span class="span1">' + sd + ' - ' + sf + ' = ' + (sd - sf) + '</span><br />');
document.write('<span>' + sf + ' - ' + se + ' = ' + (sf - se) + '</span><span class="span1">' + se + ' - ' + sf + ' = ' + (se - sf) + '</span><br />');
document.write('<span>' + sf + ' - ' + sf + ' = ' + (sf - sf) + '</span><span class="span1">' + sf + ' - ' + sf + ' = ' + (sf - sf) + '</span><br />');
document.write('<span>' + sf + ' - ' + sg + ' = ' + (sf - sg) + '</span><span class="span1">' + sg + ' - ' + sf + ' = ' + (sg - sf) + '</span><br />');
document.write('<span>' + sf + ' - ' + sh + ' = ' + (sf - sh) + '</span><span class="span1">' + sh + ' - ' + sf + ' = ' + (sh - sf) + '</span><br />');
document.write('<span>' + sf + ' - ' + si + ' = ' + (sf - si) + '</span><span class="span1">' + si + ' - ' + sf + ' = ' + (si - sf) + '</span><br />');
document.write('<span>' + sf + ' - ' + sn + ' = ' + (sf - sn) + '</span><span class="span1">' + sn + ' - ' + sf + ' = ' + (sn - sf) + '</span><br />');
document.write('<span>' + sf + ' - ' + ac + ' = ' + (sf - ac) + '</span><span class="span1">' + ac + ' - ' + sf + ' = ' + (ac - sf) + '</span></div>');
document.write('<div style="float: left; margin-left: 660px;"');
document.write('<span>' + sn + ' - ' + ba + ' = ' + (sn - ba) + '</span><span class="span2">' + ba + ' - ' + sn + ' = ' + (ba - sn) + '</span><br />');
document.write('<span>' + sn + ' - ' + bb + ' = ' + (sn - bb) + '</span><span class="span2">' + bb + ' - ' + sn + ' = ' + (bb - sn) + '</span><br />');
document.write('<span>' + sn + ' - ' + bc + ' = ' + (sn - bc) + '</span><span class="span2">' + bc + ' - ' + sn + ' = ' + (bc - sn) + '</span><br />');
document.write('<span>' + sn + ' - ' + bd + ' = ' + (sn - bd) + '</span><span class="span2">' + bd + ' - ' + sn + ' = ' + (bd - sn) + '</span><br />');
document.write('<span>' + sn + ' - ' + na + ' = ' + (sn - na) + '</span><span class="span2">' + na + ' - ' + sn + ' = ' + (na - sn) + '</span><br />');
document.write('<span>' + sn + ' - ' + nb + ' = ' + (sn - nb) + '</span><span class="span2">' + nb + ' - ' + sn + ' = ' + (nb - sn) + '</span><br />');
document.write('<span>' + sn + ' - ' + nc + ' = ' + (sn - nc) + '</span><span class="span2">' + nc + ' - ' + sn + ' = ' + (nc - sn) + '</span><br />');
document.write('<span>' + sn + ' - ' + ng + ' = ' + (sn - ng) + '</span><span class="span2">' + ng + ' - ' + sn + ' = ' + (ng - sn) + '</span><br />');
document.write('<span>' + sn + ' - ' + nh + ' = ' + (sn - nh) + '</span><span class="span2">' + nh + ' - ' + sn + ' = ' + (nh - sn) + '</span><br />');
document.write('<span>' + sn + ' - ' + sc + ' = ' + (sn - sc) + '</span><span class="span2">' + sc + ' - ' + sn + ' = ' + (sc - sn) + '</span><br />');
document.write('<span>' + sn + ' - ' + sd + ' = ' + (sn - sd) + '</span><span class="span2">' + sd + ' - ' + sn + ' = ' + (sd - sn) + '</span><br />');
document.write('<span>' + sn + ' - ' + se + ' = ' + (sn - se) + '</span><span class="span2">' + se + ' - ' + sn + ' = ' + (se - sn) + '</span><br />');
document.write('<span>' + sn + ' - ' + sf + ' = ' + (sn - sf) + '</span><span class="span2">' + sf + ' - ' + sn + ' = ' + (sf - sn) + '</span><br />');
document.write('<span>' + sn + ' - ' + sg + ' = ' + (sn - sg) + '</span><span class="span2">' + sg + ' - ' + sn + ' = ' + (sg - sn) + '</span><br />');
document.write('<span>' + sn + ' - ' + sh + ' = ' + (sn - sh) + '</span><span class="span2">' + sh + ' - ' + sn + ' = ' + (sh - sn) + '</span><br />');
document.write('<span>' + sn + ' - ' + si + ' = ' + (sn - si) + '</span><span class="span2">' + si + ' - ' + sn + ' = ' + (si - sn) + '</span><br />');
document.write('<span>' + sn + ' - ' + sn + ' = ' + (sn - sn) + '</span><span class="span2">' + sn + ' - ' + sn + ' = ' + (sn - sn) + '</span><br />');
document.write('<span>' + sn + ' - ' + aa + ' = ' + (sn - aa) + '</span><span class="span2">' + aa + ' - ' + sn + ' = ' + (aa - sn) + '</span></div>');
document.write('<hr style="clear: left;" />');
document.write('Infinity的减法:<br />');
document.write('<div style="float: left;"');
document.write('<span>' + ne + ' - ' + la + ' = ' + (ne - la) + '</span><span class="span1">' + la + ' - ' + ne + ' = ' + (la - ne) + '</span><br />');
document.write('<span>' + ne + ' - ' + ba + ' = ' + (ne - ba) + '</span><span class="span1">' + ba + ' - ' + ne + ' = ' + (ba - ne) + '</span><br />');
document.write('<span>' + ne + ' - ' + bb + ' = ' + (ne - bb) + '</span><span class="span1">' + bb + ' - ' + ne + ' = ' + (bb - ne) + '</span><br />');
document.write('<span>' + ne + ' - ' + bc + ' = ' + (ne - bc) + '</span><span class="span1">' + bc + ' - ' + ne + ' = ' + (bc - ne) + '</span><br />');
document.write('<span>' + ne + ' - ' + bd + ' = ' + (ne - bd) + '</span><span class="span1">' + bd + ' - ' + ne + ' = ' + (bd - ne) + '</span><br />');
document.write('<span>' + ne + ' - ' + na + ' = ' + (ne - na) + '</span><span class="span1">' + na + ' - ' + ne + ' = ' + (na - ne) + '</span><br />');
document.write('<span>' + ne + ' - ' + nb + ' = ' + (ne - nb) + '</span><span class="span1">' + nb + ' - ' + ne + ' = ' + (nb - ne) + '</span><br />');
document.write('<span>' + ne + ' - ' + nc + ' = ' + (ne - nc) + '</span><span class="span1">' + nc + ' - ' + ne + ' = ' + (nc - ne) + '</span><br />');
document.write('<span>' + ne + ' - ' + ne + ' = ' + (ne - ne) + '</span><span class="span1">' + ne + ' - ' + ne + ' = ' + (ne - ne) + '</span><br />');
document.write('<span>' + ne + ' - ' + nf + ' = ' + (ne - nf) + '</span><span class="span1">' + nf + ' - ' + ne + ' = ' + (nf - ne) + '</span><br />');
document.write('<span>' + ne + ' - ' + ng + ' = ' + (ne - ng) + '</span><span class="span1">' + ng + ' - ' + ne + ' = ' + (ng - ne) + '</span><br />');
document.write('<span>' + ne + ' - ' + nh + ' = ' + (ne - nh) + '</span><span class="span1">' + nh + ' - ' + ne + ' = ' + (nh - ne) + '</span><br />');
document.write('<span>' + ne + ' - ' + sa + ' = ' + (ne - sa) + '</span><span class="span1">' + sa + ' - ' + ne + ' = ' + (sa - ne) + '</span><br />');
document.write('<span>' + ne + ' - ' + sc + ' = ' + (ne - sc) + '</span><span class="span1">' + sc + ' - ' + ne + ' = ' + (sc - ne) + '</span><br />');
document.write('<span>' + ne + ' - ' + sd + ' = ' + (ne - sd) + '</span><span class="span1">' + sd + ' - ' + ne + ' = ' + (sd - ne) + '</span><br />');
document.write('<span>' + ne + ' - ' + se + ' = ' + (ne - se) + '</span><span class="span1">' + se + ' - ' + ne + ' = ' + (se - ne) + '</span><br />');
document.write('<span>' + ne + ' - ' + sf + ' = ' + (ne - sf) + '</span><span class="span1">' + sf + ' - ' + ne + ' = ' + (sf - ne) + '</span><br />');
document.write('<span>' + ne + ' - ' + sg + ' = ' + (ne - sg) + '</span><span class="span1">' + sg + ' - ' + ne + ' = ' + (sg - ne) + '</span><br />');
document.write('<span>' + ne + ' - ' + sh + ' = ' + (ne - sh) + '</span><span class="span1">' + sh + ' - ' + ne + ' = ' + (sh - ne) + '</span><br />');
document.write('<span>' + ne + ' - ' + si + ' = ' + (ne - si) + '</span><span class="span1">' + si + ' - ' + ne + ' = ' + (si - ne) + '</span><br />');
document.write('<span>' + ne + ' - ' + sj + ' = ' + (ne - sj) + '</span><span class="span1">' + sj + ' - ' + ne + ' = ' + (sj - ne) + '</span><br />');
document.write('<span>' + ne + ' - ' + sk + ' = ' + (ne - sk) + '</span><span class="span1">' + sk + ' - ' + ne + ' = ' + (sk - ne) + '</span><br />');
document.write('<span>' + ne + ' - ' + sm + ' = ' + (ne - sm) + '</span><span class="span1">' + sm + ' - ' + ne + ' = ' + (sm - ne) + '</span><br />');
document.write('<span>' + ne + ' - ' + sn + ' = ' + (ne - sn) + '</span><span class="span1">' + sn + ' - ' + ne + ' = ' + (sn - ne) + '</span><br />');
document.write('<span>' + ne + ' - ' + aa + ' = ' + (ne - aa) + '</span><span class="span1">' + aa + ' - ' + ne + ' = ' + (aa - ne) + '</span><br />');
document.write('<span>' + ne + ' - ' + ac + ' = ' + (ne - ac) + '</span><span class="span1">' + ac + ' - ' + ne + ' = ' + (ac - ne) + '</span></div>');
document.write('<div style="float: left; margin-left: 660px;"');
document.write('<span>' + sj + ' - ' + la + ' = ' + (sj - la) + '</span><span class="span2">' + la + ' - ' + sj + ' = ' + (la - sj) + '</span><br />');
document.write('<span>' + sj + ' - ' + ba + ' = ' + (sj - ba) + '</span><span class="span2">' + ba + ' - ' + sj + ' = ' + (ba - sj) + '</span><br />');
document.write('<span>' + sj + ' - ' + bb + ' = ' + (sj - bb) + '</span><span class="span2">' + bb + ' - ' + sj + ' = ' + (bb - sj) + '</span><br />');
document.write('<span>' + sj + ' - ' + bc + ' = ' + (sj - bc) + '</span><span class="span2">' + bc + ' - ' + sj + ' = ' + (bc - sj) + '</span><br />');
document.write('<span>' + sj + ' - ' + bd + ' = ' + (sj - bd) + '</span><span class="span2">' + bd + ' - ' + sj + ' = ' + (bd - sj) + '</span><br />');
document.write('<span>' + sj + ' - ' + na + ' = ' + (sj - na) + '</span><span class="span2">' + na + ' - ' + sj + ' = ' + (na - sj) + '</span><br />');
document.write('<span>' + sj + ' - ' + nb + ' = ' + (sj - nb) + '</span><span class="span2">' + nb + ' - ' + sj + ' = ' + (nb - sj) + '</span><br />');
document.write('<span>' + sj + ' - ' + nc + ' = ' + (sj - nc) + '</span><span class="span2">' + nc + ' - ' + sj + ' = ' + (nc - sj) + '</span><br />');
document.write('<span>' + sj + ' - ' + nf + ' = ' + (sj - nf) + '</span><span class="span2">' + nf + ' - ' + sj + ' = ' + (nf - sj) + '</span><br />');
document.write('<span>' + sj + ' - ' + ng + ' = ' + (sj - ng) + '</span><span class="span2">' + ng + ' - ' + sj + ' = ' + (ng - sj) + '</span><br />');
document.write('<span>' + sj + ' - ' + nh + ' = ' + (sj - nh) + '</span><span class="span2">' + nh + ' - ' + sj + ' = ' + (nh - sj) + '</span><br />');
document.write('<span>' + sj + ' - ' + sa + ' = ' + (sj - sa) + '</span><span class="span2">' + sa + ' - ' + sj + ' = ' + (sa - sj) + '</span><br />');
document.write('<span>' + sj + ' - ' + sc + ' = ' + (sj - sc) + '</span><span class="span2">' + sc + ' - ' + sj + ' = ' + (sc - sj) + '</span><br />');
document.write('<span>' + sj + ' - ' + sd + ' = ' + (sj - sd) + '</span><span class="span2">' + sd + ' - ' + sj + ' = ' + (sd - sj) + '</span><br />');
document.write('<span>' + sj + ' - ' + se + ' = ' + (sj - se) + '</span><span class="span2">' + se + ' - ' + sj + ' = ' + (se - sj) + '</span><br />');
document.write('<span>' + sj + ' - ' + sf + ' = ' + (sj - sf) + '</span><span class="span2">' + sf + ' - ' + sj + ' = ' + (sf - sj) + '</span><br />');
document.write('<span>' + sj + ' - ' + sg + ' = ' + (sj - sg) + '</span><span class="span2">' + sg + ' - ' + sj + ' = ' + (sg - sj) + '</span><br />');
document.write('<span>' + sj + ' - ' + sh + ' = ' + (sj - sh) + '</span><span class="span2">' + sh + ' - ' + sj + ' = ' + (sh - sj) + '</span><br />');
document.write('<span>' + sj + ' - ' + si + ' = ' + (sj - si) + '</span><span class="span2">' + si + ' - ' + sj + ' = ' + (si - sj) + '</span><br />');
document.write('<span>' + sj + ' - ' + sj + ' = ' + (sj - sj) + '</span><span class="span2">' + sj + ' - ' + sj + ' = ' + (sj - sj) + '</span><br />');
document.write('<span>' + sj + ' - ' + sk + ' = ' + (sj - sk) + '</span><span class="span2">' + sk + ' - ' + sj + ' = ' + (sk - sj) + '</span><br />');
document.write('<span>' + sj + ' - ' + sm + ' = ' + (sj - sm) + '</span><span class="span2">' + sm + ' - ' + sj + ' = ' + (sm - sj) + '</span><br />');
document.write('<span>' + sj + ' - ' + sn + ' = ' + (sj - sn) + '</span><span class="span2">' + sn + ' - ' + sj + ' = ' + (sn - sj) + '</span><br />');
document.write('<span>' + sj + ' - ' + aa + ' = ' + (sj - aa) + '</span><span class="span2">' + aa + ' - ' + sj + ' = ' + (aa - sj) + '</span><br />');
document.write('<span>' + sj + ' - ' + ac + ' = ' + (sj - ac) + '</span><span class="span2">' + ac + ' - ' + sj + ' = ' + (ac - sj) + '</span></div>');
document.write('<hr style="clear: left;" />');
document.write('-Infinity的减法:<br />');
document.write('<div style="float: left;"');
document.write('<span>' + nf + ' - ' + la + ' = ' + (nf - la) + '</span><span class="span1">' + la + ' - ' + nf + ' = ' + (la - nf) + '</span><br />');
document.write('<span>' + nf + ' - ' + ba + ' = ' + (nf - ba) + '</span><span class="span1">' + ba + ' - ' + nf + ' = ' + (ba - nf) + '</span><br />');
document.write('<span>' + nf + ' - ' + bb + ' = ' + (nf - bb) + '</span><span class="span1">' + bb + ' - ' + nf + ' = ' + (bb - nf) + '</span><br />');
document.write('<span>' + nf + ' - ' + bc + ' = ' + (nf - bc) + '</span><span class="span1">' + bc + ' - ' + nf + ' = ' + (bc - nf) + '</span><br />');
document.write('<span>' + nf + ' - ' + bd + ' = ' + (nf - bd) + '</span><span class="span1">' + bd + ' - ' + nf + ' = ' + (bd - nf) + '</span><br />');
document.write('<span>' + nf + ' - ' + na + ' = ' + (nf - na) + '</span><span class="span1">' + na + ' - ' + nf + ' = ' + (na - nf) + '</span><br />');
document.write('<span>' + nf + ' - ' + nb + ' = ' + (nf - nb) + '</span><span class="span1">' + nb + ' - ' + nf + ' = ' + (nb - nf) + '</span><br />');
document.write('<span>' + nf + ' - ' + nc + ' = ' + (nf - nc) + '</span><span class="span1">' + nc + ' - ' + nf + ' = ' + (nc - nf) + '</span><br />');
document.write('<span>' + nf + ' - ' + nf + ' = ' + (nf - nf) + '</span><span class="span1">' + nf + ' - ' + nf + ' = ' + (nf - nf) + '</span><br />');
document.write('<span>' + nf + ' - ' + ng + ' = ' + (nf - ng) + '</span><span class="span1">' + ng + ' - ' + nf + ' = ' + (ng - nf) + '</span><br />');
document.write('<span>' + nf + ' - ' + nh + ' = ' + (nf - nh) + '</span><span class="span1">' + nh + ' - ' + nf + ' = ' + (nh - nf) + '</span><br />');
document.write('<span>' + nf + ' - ' + sa + ' = ' + (nf - sa) + '</span><span class="span1">' + sa + ' - ' + nf + ' = ' + (sa - nf) + '</span><br />');
document.write('<span>' + nf + ' - ' + sc + ' = ' + (nf - sc) + '</span><span class="span1">' + sc + ' - ' + nf + ' = ' + (sc - nf) + '</span><br />');
document.write('<span>' + nf + ' - ' + sd + ' = ' + (nf - sd) + '</span><span class="span1">' + sd + ' - ' + nf + ' = ' + (sd - nf) + '</span><br />');
document.write('<span>' + nf + ' - ' + se + ' = ' + (nf - se) + '</span><span class="span1">' + se + ' - ' + nf + ' = ' + (se - nf) + '</span><br />');
document.write('<span>' + nf + ' - ' + sf + ' = ' + (nf - sf) + '</span><span class="span1">' + sf + ' - ' + nf + ' = ' + (sf - nf) + '</span><br />');
document.write('<span>' + nf + ' - ' + sg + ' = ' + (nf - sg) + '</span><span class="span1">' + sg + ' - ' + nf + ' = ' + (sg - nf) + '</span><br />');
document.write('<span>' + nf + ' - ' + sh + ' = ' + (nf - sh) + '</span><span class="span1">' + sh + ' - ' + nf + ' = ' + (sh - nf) + '</span><br />');
document.write('<span>' + nf + ' - ' + si + ' = ' + (nf - si) + '</span><span class="span1">' + si + ' - ' + nf + ' = ' + (si - nf) + '</span><br />');
document.write('<span>' + nf + ' - ' + sk + ' = ' + (nf - sk) + '</span><span class="span1">' + sk + ' - ' + nf + ' = ' + (sk - nf) + '</span><br />');
document.write('<span>' + nf + ' - ' + sm + ' = ' + (nf - sm) + '</span><span class="span1">' + sm + ' - ' + nf + ' = ' + (sm - nf) + '</span><br />');
document.write('<span>' + nf + ' - ' + sn + ' = ' + (nf - sn) + '</span><span class="span1">' + sn + ' - ' + nf + ' = ' + (sn - nf) + '</span><br />');
document.write('<span>' + nf + ' - ' + aa + ' = ' + (nf - aa) + '</span><span class="span1">' + aa + ' - ' + nf + ' = ' + (aa - nf) + '</span><br />');
document.write('<span>' + nf + ' - ' + ac + ' = ' + (nf - ac) + '</span><span class="span1">' + ac + ' - ' + nf + ' = ' + (ac - nf) + '</span></div>');
document.write('<div style="float: left; margin-left: 660px;"');
document.write('<span>' + sk + ' - ' + la + ' = ' + (sk - la) + '</span><span class="span2">' + la + ' - ' + sk + ' = ' + (la - sk) + '</span><br />');
document.write('<span>' + sk + ' - ' + ba + ' = ' + (sk - ba) + '</span><span class="span2">' + ba + ' - ' + sk + ' = ' + (ba - sk) + '</span><br />');
document.write('<span>' + sk + ' - ' + bb + ' = ' + (sk - bb) + '</span><span class="span2">' + bb + ' - ' + sk + ' = ' + (bb - sk) + '</span><br />');
document.write('<span>' + sk + ' - ' + bc + ' = ' + (sk - bc) + '</span><span class="span2">' + bc + ' - ' + sk + ' = ' + (bc - sk) + '</span><br />');
document.write('<span>' + sk + ' - ' + bd + ' = ' + (sk - bd) + '</span><span class="span2">' + bd + ' - ' + sk + ' = ' + (bd - sk) + '</span><br />');
document.write('<span>' + sk + ' - ' + na + ' = ' + (sk - na) + '</span><span class="span2">' + na + ' - ' + sk + ' = ' + (na - sk) + '</span><br />');
document.write('<span>' + sk + ' - ' + nb + ' = ' + (sk - nb) + '</span><span class="span2">' + nb + ' - ' + sk + ' = ' + (nb - sk) + '</span><br />');
document.write('<span>' + sk + ' - ' + nc + ' = ' + (sk - nc) + '</span><span class="span2">' + nc + ' - ' + sk + ' = ' + (nc - sk) + '</span><br />');
document.write('<span>' + sk + ' - ' + ng + ' = ' + (sk - ng) + '</span><span class="span2">' + ng + ' - ' + sk + ' = ' + (ng - sk) + '</span><br />');
document.write('<span>' + sk + ' - ' + nh + ' = ' + (sk - nh) + '</span><span class="span2">' + nh + ' - ' + sk + ' = ' + (nh - sk) + '</span><br />');
document.write('<span>' + sk + ' - ' + sa + ' = ' + (sk - sa) + '</span><span class="span2">' + sa + ' - ' + sk + ' = ' + (sa - sk) + '</span><br />');
document.write('<span>' + sk + ' - ' + sc + ' = ' + (sk - sc) + '</span><span class="span2">' + sc + ' - ' + sk + ' = ' + (sc - sk) + '</span><br />');
document.write('<span>' + sk + ' - ' + sd + ' = ' + (sk - sd) + '</span><span class="span2">' + sd + ' - ' + sk + ' = ' + (sd - sk) + '</span><br />');
document.write('<span>' + sk + ' - ' + se + ' = ' + (sk - se) + '</span><span class="span2">' + se + ' - ' + sk + ' = ' + (se - sk) + '</span><br />');
document.write('<span>' + sk + ' - ' + sf + ' = ' + (sk - sf) + '</span><span class="span2">' + sf + ' - ' + sk + ' = ' + (sf - sk) + '</span><br />');
document.write('<span>' + sk + ' - ' + sg + ' = ' + (sk - sg) + '</span><span class="span2">' + sg + ' - ' + sk + ' = ' + (sg - sk) + '</span><br />');
document.write('<span>' + sk + ' - ' + sh + ' = ' + (sk - sh) + '</span><span class="span2">' + sh + ' - ' + sk + ' = ' + (sh - sk) + '</span><br />');
document.write('<span>' + sk + ' - ' + si + ' = ' + (sk - si) + '</span><span class="span2">' + si + ' - ' + sk + ' = ' + (si - sk) + '</span><br />');
document.write('<span>' + sk + ' - ' + sk + ' = ' + (sk - sk) + '</span><span class="span2">' + sk + ' - ' + sk + ' = ' + (sk - sk) + '</span><br />');
document.write('<span>' + sk + ' - ' + sm + ' = ' + (sk - sm) + '</span><span class="span2">' + sm + ' - ' + sk + ' = ' + (sm - sk) + '</span><br />');
document.write('<span>' + sk + ' - ' + sn + ' = ' + (sk - sn) + '</span><span class="span2">' + sn + ' - ' + sk + ' = ' + (sn - sk) + '</span><br />');
document.write('<span>' + sk + ' - ' + aa + ' = ' + (sk - aa) + '</span><span class="span2">' + aa + ' - ' + sk + ' = ' + (aa - sk) + '</span><br />');
document.write('<span>' + sk + ' - ' + ac + ' = ' + (sk - ac) + '</span><span class="span2">' + ac + ' - ' + sk + ' = ' + (ac - sk) + '</span></div>');
document.write('<hr style="clear: left;" />');
document.write('true或false的减法:<br />');
document.write(ba + ' - ' + ba + ' = ' + (ba - ba) + '<br />');
document.write(ba + ' - ' + bb + ' = ' + (ba - bb) + '<br />');
document.write(ba + ' - ' + bc + ' = ' + (ba - bc) + '<br />');
document.write(ba + ' - ' + bd + ' = ' + (ba - bd) + '<br />');
document.write(ba + ' - ' + na + ' = ' + (ba - na) + '<br />');
document.write(ba + ' - ' + nb + ' = ' + (ba - nb) + '<br />');
document.write(ba + ' - ' + nc + ' = ' + (ba - nc) + '<br />');
document.write(ba + ' - ' + ng + ' = ' + (ba - ng) + '<br />');
document.write(ba + ' - ' + nh + ' = ' + (ba - nh) + '<br />');
</script>
</body>
</html>
3.4.2. 效果图