首页 > 微信小程序 > 小程序开发 > 微信小程序内常用的运算符有哪些

微信小程序内常用的运算符有哪些

php中世界最好的语言
发布: 2018-06-05 14:05:36
原创
5291 人浏览过
<h2 style="margin-top: 0px; margin-bottom: 10px; padding: 0.25em 0px 0px; color: rgb(0, 0, 0); line-height: 1.7; font-size: 16px; border-top: none; font-family: Verdana, Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255); text-align: left;">基本运算符</h2> <p style="margin-bottom: 5px; color: rgb(0, 0, 0); line-height: 1.7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; background-color: rgb(255, 255, 255); text-align: left;">示例代码:</p> <div class="code" style="position:relative; padding:0px; margin:0px;"><pre style="margin-top:15px;margin-bottom:15px;padding:10px 5px;line-height:1.7;background:rgb(239,239,239);font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;border:1px solid rgb(221,221,221);white-space:pre-wrap;">var a = 10, b = 20;// 加法运算console.log(30 === a + b);// 减法运算console.log(-10 === a - b);// 乘法运算console.log(200 === a * b);// 除法运算console.log(0.5 === a / b);// 取余运算console.log(10 === a % b);</pre><div class="contentsignin">登录后复制</div></div> <ul style="margin-top:10px;margin-bottom:10px;padding-left:30px;list-style-position:outside;list-style-image:none;line-height:1.7;color:rgb(0,0,0);font-family:Verdana, Arial, Helvetica, sans-serif;font-size:14px;background-color:rgb(255,255,255);" class=" list-paddingleft-2"><li><p style="text-align: left;">加法运算(+)也可以用作字符串的拼接。</p></li></ul> <div class="code" style="position:relative; padding:0px; margin:0px;"><pre style="margin-top:15px;margin-bottom:15px;padding:10px 5px;line-height:1.7;background:rgb(239,239,239);font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;border:1px solid rgb(221,221,221);white-space:pre-wrap;">var a = '.w' , b = 'xs';// 字符串拼接console.log('.wxs' === a + b);</pre><div class="contentsignin">登录后复制</div></div> <h2 style="margin-top: 20px; margin-bottom: 10px; padding: 0px; color: rgb(0, 0, 0); line-height: 1.7; font-size: 16px; font-family: Verdana, Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255); text-align: left;">一元运算符</h2> <p style="margin-bottom: 5px; color: rgb(0, 0, 0); line-height: 1.7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; background-color: rgb(255, 255, 255); text-align: left;">示例代码:</p> <div class="code" style="position:relative; padding:0px; margin:0px;"><pre style="margin-top:15px;margin-bottom:15px;padding:10px 5px;line-height:1.7;background:rgb(239,239,239);font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;border:1px solid rgb(221,221,221);white-space:pre-wrap;">var a = 10, b = 20;// 自增运算console.log(10 === a++);console.log(12 === ++a);// 自减运算console.log(12 === a--);console.log(10 === --a);// 正值运算console.log(10 === +a);// 负值运算console.log(0-10 === -a);// 否运算console.log(-11 === ~a);// 取反运算console.log(false === !a);// delete 运算console.log(true === delete a.fake);// void 运算console.log(undefined === void a);// typeof 运算console.log("number" === typeof a);</pre><div class="contentsignin">登录后复制</div></div> <h2 style="margin-top: 20px; margin-bottom: 10px; padding: 0px; color: rgb(0, 0, 0); line-height: 1.7; font-size: 16px; font-family: Verdana, Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255); text-align: left;">位运算符</h2> <p style="margin-bottom: 5px; color: rgb(0, 0, 0); line-height: 1.7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; background-color: rgb(255, 255, 255); text-align: left;">示例代码:</p> <div class="code" style="position:relative; padding:0px; margin:0px;"><pre style="margin-top:15px;margin-bottom:15px;padding:10px 5px;line-height:1.7;background:rgb(239,239,239);font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;border:1px solid rgb(221,221,221);white-space:pre-wrap;">var a = 10, b = 20;// 左移运算console.log(80 === (a << 3));// 无符号右移运算console.log(2 === (a >> 2));// 带符号右移运算console.log(2 === (a >>> 2));// 与运算console.log(2 === (a & 3));// 异或运算console.log(9 === (a ^ 3));// 或运算console.log(11 === (a | 3));</pre><div class="contentsignin">登录后复制</div></div> <h2 style="margin-top: 20px; margin-bottom: 10px; padding: 0px; color: rgb(0, 0, 0); line-height: 1.7; font-size: 16px; font-family: Verdana, Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255); text-align: left;">比较运算符</h2> <p style="margin-bottom: 5px; color: rgb(0, 0, 0); line-height: 1.7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; background-color: rgb(255, 255, 255); text-align: left;">示例代码:</p> <div class="code" style="position:relative; padding:0px; margin:0px;"><pre style="margin-top:15px;margin-bottom:15px;padding:10px 5px;line-height:1.7;background:rgb(239,239,239);font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;border:1px solid rgb(221,221,221);white-space:pre-wrap;">var a = 10, b = 20;// 小于console.log(true === (a < b));// 大于console.log(false === (a > b));// 小于等于console.log(true === (a <= b));// 大于等于console.log(false === (a >= b));</pre><div class="contentsignin">登录后复制</div></div> <h2 style="margin-top: 20px; margin-bottom: 10px; padding: 0px; color: rgb(0, 0, 0); line-height: 1.7; font-size: 16px; font-family: Verdana, Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255); text-align: left;">等值运算符</h2> <p style="margin-bottom: 5px; color: rgb(0, 0, 0); line-height: 1.7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; background-color: rgb(255, 255, 255); text-align: left;">示例代码:</p> <div class="code" style="position:relative; padding:0px; margin:0px;"><pre style="margin-top:15px;margin-bottom:15px;padding:10px 5px;line-height:1.7;background:rgb(239,239,239);font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;border:1px solid rgb(221,221,221);white-space:pre-wrap;">var a = 10, b = 20;// 等号console.log(false === (a == b));// 非等号console.log(true === (a != b));// 全等号console.log(false === (a === b));// 非全等号console.log(true === (a !== b));</pre><div class="contentsignin">登录后复制</div></div> <h2 style="margin-top: 20px; margin-bottom: 10px; padding: 0px; color: rgb(0, 0, 0); line-height: 1.7; font-size: 16px; font-family: Verdana, Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255); text-align: left;">赋值运算符</h2> <p style="margin-bottom: 5px; color: rgb(0, 0, 0); line-height: 1.7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; background-color: rgb(255, 255, 255); text-align: left;">示例代码:</p> <div class="code" style="position:relative; padding:0px; margin:0px;"><pre style="margin-top:15px;margin-bottom:15px;padding:10px 5px;line-height:1.7;background:rgb(239,239,239);font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;border:1px solid rgb(221,221,221);white-space:pre-wrap;">var a = 10; a = 10; a *= 10;console.log(100 === a); a = 10; a /= 5;console.log(2 === a); a = 10; a %= 7;console.log(3 === a); a = 10; a += 5;console.log(15 === a); a = 10; a -= 11;console.log(-1 === a); a = 10; a <<= 10;console.log(10240 === a); a = 10; a >>= 2;console.log(2 === a); a = 10; a >>>= 2;console.log(2 === a); a = 10; a &= 3;console.log(2 === a); a = 10; a ^= 3;console.log(9 === a); a = 10; a |= 3;console.log(11 === a);</pre><div class="contentsignin">登录后复制</div></div> <h2 style="margin-top: 20px; margin-bottom: 10px; padding: 0px; color: rgb(0, 0, 0); line-height: 1.7; font-size: 16px; font-family: Verdana, Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255); text-align: left;">二元逻辑运算符</h2> <p style="margin-bottom: 5px; color: rgb(0, 0, 0); line-height: 1.7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; background-color: rgb(255, 255, 255); text-align: left;">示例代码:</p> <div class="code" style="position:relative; padding:0px; margin:0px;"><pre style="margin-top:15px;margin-bottom:15px;padding:10px 5px;line-height:1.7;background:rgb(239,239,239);font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;border:1px solid rgb(221,221,221);white-space:pre-wrap;">var a = 10, b = 20;// 逻辑与console.log(20 === (a && b));// 逻辑或console.log(10 === (a || b));</pre><div class="contentsignin">登录后复制</div></div> <h2 style="margin-top: 20px; margin-bottom: 10px; padding: 0px; color: rgb(0, 0, 0); line-height: 1.7; font-size: 16px; font-family: Verdana, Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255); text-align: left;">其他运算符</h2> <p style="margin-bottom: 5px; color: rgb(0, 0, 0); line-height: 1.7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; background-color: rgb(255, 255, 255); text-align: left;">示例代码:</p> <div class="code" style="position:relative; padding:0px; margin:0px;"><pre style="margin-top:15px;margin-bottom:15px;padding:10px 5px;line-height:1.7;background:rgb(239,239,239);font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;border:1px solid rgb(221,221,221);white-space:pre-wrap;">var a = 10, b = 20;//条件运算符console.log(20 === (a >= 10 ? a + 10 : b + 10));//逗号运算符console.log(20 === (a, b));</pre><div class="contentsignin">登录后复制</div></div> <h2 style="margin-top: 20px; margin-bottom: 10px; padding: 0px; color: rgb(0, 0, 0); line-height: 1.7; font-size: 16px; font-family: Verdana, Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255); text-align: left;">运算符优先级</h2> <table style="margin: 15px 0px; padding: 0px; table-layout: fixed; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; background-color: rgb(255, 255, 255);"> <thead style="margin:0px;padding:0px;background-color:rgb(249,249,249);"><tr style="margin:0px;padding:0px;" class="firstRow"> <th style="margin:0px;padding:2px 4px;background-color:rgb(255,255,255);border-color:rgb(204,204,204);text-align:center;">优先级</th> <th style="margin:0px;padding:2px 4px;background-color:rgb(255,255,255);border-color:rgb(204,204,204);text-align:center;">运算符</th> <th style="margin:0px;padding:2px 4px;background-color:rgb(255,255,255);border-color:rgb(204,204,204);text-align:center;">说明</th> <th style="margin:0px;padding:2px 4px;background-color:rgb(255,255,255);border-color:rgb(204,204,204);text-align:center;">结合性</th> </tr></thead> <tbody style="margin:0px;padding:0px;"> <tr style="margin:0px;padding:0px;"> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">20</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;"> <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;">(</code> ... <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;">)</code> </td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">括号</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">n/a</td> </tr> <tr style="margin:0px;padding:0px;"> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">19</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">... <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;">.</code> ...</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">成员访问</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">从左到右</td> </tr> <tr style="margin:0px;padding:0px;"> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;"> </td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">... <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;">[</code> ... <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;">]</code> </td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">成员访问</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">从左到右</td> </tr> <tr style="margin:0px;padding:0px;"> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;"> </td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">... <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;">(</code> ... <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;">)</code> </td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">函数调用</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">从左到右</td> </tr> <tr style="margin:0px;padding:0px;"> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">17</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">... <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;">++</code> </td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">后置递增</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">n/a</td> </tr> <tr style="margin:0px;padding:0px;"> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;"> </td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">... <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;">--</code> </td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">后置递减</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">n/a</td> </tr> <tr style="margin:0px;padding:0px;"> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">16</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;"> <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;">!</code> ...</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">逻辑非</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">从右到左</td> </tr> <tr style="margin:0px;padding:0px;"> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;"> </td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;"> <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;">~</code> ...</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">按位非</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">从右到左</td> </tr> <tr style="margin:0px;padding:0px;"> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;"> </td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;"> <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;">+</code> ...</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">一元加法</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">从右到左</td> </tr> <tr style="margin:0px;padding:0px;"> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;"> </td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;"> <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;">-</code> ...</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">一元减法</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">从右到左</td> </tr> <tr style="margin:0px;padding:0px;"> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;"> </td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;"> <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;">++</code> ...</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">前置递增</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">从右到左</td> </tr> <tr style="margin:0px;padding:0px;"> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;"> </td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;"> <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;">--</code> ...</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">前置递减</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">从右到左</td> </tr> <tr style="margin:0px;padding:0px;"> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;"> </td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;"> <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;">typeof</code> ...</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">typeof</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">从右到左</td> </tr> <tr style="margin:0px;padding:0px;"> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;"> </td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;"> <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;">void</code> ...</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">void</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">从右到左</td> </tr> <tr style="margin:0px;padding:0px;"> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;"> </td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;"> <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;">delete</code> ...</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">delete</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">从右到左</td> </tr> <tr style="margin:0px;padding:0px;"> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">14</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">... <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;">*</code> ...</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">乘法</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">从左到右</td> </tr> <tr style="margin:0px;padding:0px;"> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;"> </td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">... <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;">/</code> ...</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">除法</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">从左到右</td> </tr> <tr style="margin:0px;padding:0px;"> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;"> </td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">... <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;">%</code> ...</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">取模</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">从左到右</td> </tr> <tr style="margin:0px;padding:0px;"> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">13</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">... <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;">+</code> ...</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">加法</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">从左到右</td> </tr> <tr style="margin:0px;padding:0px;"> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;"> </td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">... <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;">-</code> ...</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">减法</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">从左到右</td> </tr> <tr style="margin:0px;padding:0px;"> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">12</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">... <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;"><<</code> ...</td><td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">按位左移</td><td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">从左到右</td></tr><tr style="margin:0px;padding:0px;"><td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;"> </td><td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">... <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;">>></code> ...</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">按位右移</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">从左到右</td> </tr> <tr style="margin:0px;padding:0px;"> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;"> </td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">... <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;">>>></code> ...</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">无符号右移</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">从左到右</td> </tr> <tr style="margin:0px;padding:0px;"> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">11</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">... <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;"><</code> ...</td><td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">小于</td><td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">从左到右</td></tr><tr style="margin:0px;padding:0px;"><td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;"> </td><td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">... <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;"><=</code> ...</td><td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">小于等于</td><td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">从左到右</td></tr><tr style="margin:0px;padding:0px;"><td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;"> </td><td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">... <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;">></code> ...</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">大于</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">从左到右</td> </tr> <tr style="margin:0px;padding:0px;"> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;"> </td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">... <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;">>=</code> ...</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">大于等于</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">从左到右</td> </tr> <tr style="margin:0px;padding:0px;"> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">10</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">... <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;">==</code> ...</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">等号</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">从左到右</td> </tr> <tr style="margin:0px;padding:0px;"> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;"> </td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">... <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;">!=</code> ...</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">非等号</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">从左到右</td> </tr> <tr style="margin:0px;padding:0px;"> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;"> </td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">... <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;">===</code> ...</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">全等号</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">从左到右</td> </tr> <tr style="margin:0px;padding:0px;"> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;"> </td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">... <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;">!==</code> ...</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">非全等号</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">从左到右</td> </tr> <tr style="margin:0px;padding:0px;"> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">9</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">... <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;">&</code> ...</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">按位与</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">从左到右</td> </tr> <tr style="margin:0px;padding:0px;"> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">8</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">... <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;">^</code> ...</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">按位异或</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">从左到右</td> </tr> <tr style="margin:0px;padding:0px;"> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">7</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">... <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;">|</code> ...</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">按位或</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">从左到右</td> </tr> <tr style="margin:0px;padding:0px;"> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">6</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">... <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;">&&</code> ...</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">逻辑与</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">从左到右</td> </tr> <tr style="margin:0px;padding:0px;"> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">5</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">... <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;">||</code> ...</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">逻辑或</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">从左到右</td> </tr> <tr style="margin:0px;padding:0px;"> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">4</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">... <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;">?</code> ... <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;">:</code> ...</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">条件运算符</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">从右到左</td> </tr> <tr style="margin:0px;padding:0px;"> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">3</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">... <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;">=</code> ...</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">赋值</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">从右到左</td> </tr> <tr style="margin:0px;padding:0px;"> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;"> </td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">... <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;">+=</code> ...</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">赋值</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">从右到左</td> </tr> <tr style="margin:0px;padding:0px;"> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;"> </td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">... <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;">-=</code> ...</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">赋值</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">从右到左</td> </tr> <tr style="margin:0px;padding:0px;"> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;"> </td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">... <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;">*=</code> ...</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">赋值</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">从右到左</td> </tr> <tr style="margin:0px;padding:0px;"> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;"> </td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">... <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;">/=</code> ...</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">赋值</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">从右到左</td> </tr> <tr style="margin:0px;padding:0px;"> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;"> </td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">... <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;">%=</code> ...</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">赋值</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">从右到左</td> </tr> <tr style="margin:0px;padding:0px;"> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;"> </td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">... <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;"><<=</code> ...</td><td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">赋值</td><td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">从右到左</td></tr><tr style="margin:0px;padding:0px;"><td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;"> </td><td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">... <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;">>>=</code> ...</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">赋值</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">从右到左</td> </tr> <tr style="margin:0px;padding:0px;"> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;"> </td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">... <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;">>>>=</code> ...</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">赋值</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">从右到左</td> </tr> <tr style="margin:0px;padding:0px;"> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;"> </td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">... <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;">&=</code> ...</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">赋值</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">从右到左</td> </tr> <tr style="margin:0px;padding:0px;"> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;"> </td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">... <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;">^=</code> ...</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">赋值</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">从右到左</td> </tr> <tr style="margin:0px;padding:0px;"> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;"> </td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">... <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;">|=</code> ...</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">赋值</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">从右到左</td> </tr> <tr style="margin:0px;padding:0px;"> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">0</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">... <code style="margin:0px 5px;padding:0px 4px;font-size:14px;font-family:Consolas, 'Courier New', Courier, monospace;">,</code> ...</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">逗号</td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">从左到右</td> </tr> </tbody> </table> <p style="text-align: left;">相信看了本文案例你已经掌握了方法,更多精彩请关注php中文网其它相关文章!</p> <p style="text-align: left;">推荐阅读:</p> <p style="text-align: left;"><a href="http://www.php.cn/xiaochengxu-400864.html" target="_blank">微信小程序开发中怎样实现Android环境下的横向滚动</a></p>

以上是微信小程序内常用的运算符有哪些的详细内容。更多信息请关注PHP中文网其他相关文章!

相关标签:
来源:php.cn
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板