首頁  >  文章  >  微信小程式  >  微信小程式內常用的運算子有哪些

微信小程式內常用的運算子有哪些

php中世界最好的语言
php中世界最好的语言原創
2018-06-05 14:05:365264瀏覽
<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> <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> <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> <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> <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> <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> <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> <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> <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> <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> <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> <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> <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> <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> <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> <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> <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> <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> <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;"></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;">13<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;">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;"></td> <td style="margin:0px;padding:2px 4px;min-width:40px;border-color:rgb(204,204,204);vertical-align:top;text-align:center;">#5<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;">4<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;">3<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;"></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></code> </td> </tr> </tbody> </table> <p style="text-align: left;"></p> <p style="text-align: left;"> </p># <p style="text-align: left;"><a href="http://www.php.cn/xiaochengxu-400864.html" target="_blank">... </a>|=</p> ...#############從右到左############################################################################## ###0######... ###,### ...######逗號######從左到右########## #####相信看了本文案例你已經掌握了方法,更多精彩請關注php中文網其它相關文章! ######推薦閱讀:#########微信小程式開發中如何實作Android環境下的橫向捲動######

以上是微信小程式內常用的運算子有哪些的詳細內容。更多資訊請關注PHP中文網其他相關文章!

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn