???? vue.js? ??? ????? Vue.js ?? ??, ???? ??, ? ?? ??? Vue.js ?? ?? ??? ??? ?? Sitepoint Premium? ??????.
? ???
-
? ??? Sparksuite?? ???? ?? ?? ???? ???? ??? ??? ??? ?????. ???? ??? ?? ? ? ???? ????? ???? ?? Vue? ???? ??? ?? ?? ? ?????.
-
??? ??, ?? ? ?? ??? ???? ????? ??? ? ? ??? ?? ? ? "??"?? ???? ? ?????. ?? ??? ? ? ?? ???? ??? ???? ?? ? ? ???? ?????? "?"??? ?????. -
jQuery ??
??, jQuery? ?? ??? ??? ???? ??? ?? ?????. - ? ??? ???? ?? ?? ?? ??? ??? ?? ???? ? ?? ?? ???? ??? ?? ??? ?????. ?? ??? ??? ??? ?? ??? ??????.
<tr> class="item"> <td><input type="text" v-model="item.description" /></td> <td><input type="number" v-model="item.price" /></td> <td><input type="number" v-model="item.quantity" /></td> <td><pre class="brush:php;toolbar:false"><code class="javascript">$('table').on('mouseup keyup', 'input[type=number]', calculateTotals);.00
?? ????, ??? ??? ?? ?? ??? ?? ??? ?? ? ?? ? ? ?? ??? ??? ?? ??? ????. ?? ??? ?? ?? ??? ?? ??????. <p>
</p>
<a> ??? ?? ?? ??? ?? ? ?? ??? ???? ????? ?? ??? ??????? ??? ??? ??? ????. <pre class='brush:php;toolbar:false;'>function calculateTotals() {
const subtotals = $('.item').map((idx, val) => calculateSubtotal(val)).get();
const total = subtotals.reduce((a, v) => a + Number(v), 0);
$('.total td:eq(1)').text(formatAsCurrency(total));
}</pre>
<p>
<have> ????? "? ??"??? ?? ?? ???? ????. ????? ?? ??? ???? ?? ???? ??? ??? ????. ??? ? ?? ?? ??? ????? ???? ??? ??? ??? ?????. ?? ???? ?????? ? ?? ??? ??? ???? ??? ??? ? ????. </p>
<the> ??? ??? jQuery ????? : <?? ??> Codepen Link <?? ??> <pre class='brush:php;toolbar:false;'>function calculateSubtotal(row) {
const $row = $(row);
const inputs = $row.find('input');
const subtotal = inputs[1].value * inputs[2].value;
$row.find('td:last').text(formatAsCurrency(subtotal));
return subtotal;
}</pre>
<ant> jQuery? ?? <?? ??>
<'s> ????? ??? ?? ??? ????? ?? ???? ?? ? ? ????? <p>
<heard> ??? Vue ? React? ?? ?? ??? ???? ?? ??? ????. ??? jQuery ??? ???? ???? ??? DOM? ???? ??? ?? ?? ?????. ??? ? ?? ( "What")? ??? ?? "????? ??"? ?? ??? ????? ?????. ??, ??? ??? ? ??? ???? ??? ??? ??? ??? ? ? ???,? ??? ??? ?? ??? ?? ???? ?? ??? ??? ?????. </p>
?? ??? ??? ? ?? ??? DOM ??? ?? ???? ??? ????? ????. ?? ????? ?? ??? UI? ???? HTML? ??? ? ?????. ??? ??? ???? ??? ?? ? ? ? ????? ??? ?? ????? ?? ??? ??? ???? ???? ???? ? ??? ????? ??? ??????. ??? ??? ????. <p>
<stop>? ??? DOM ??? ??? ???? ??? ??? ??? ??? ?? ?? ?? ??? Vue? ?? ?????? ?? ????? ??? ?????? ? ???? ?? ? ??? ???? ??? ??? ?????. <a href="http://ipnx.cn/link/dc22f6d44314e4501d867451048a5cf9">
<ue> vue? ?? <?? </a>
<do> ???? VUE? ??? ?? ??? ??? ?????? </p>
<earlier> ??? ????? Vue? ?? ??, ???? ????? ?? ?? ?? ?? (.Vue ??)? ???? ??? ??? ????. JQuery? ????? CDN? ?????? ??? ???? ? ????. ???? ?? ???? ??????? : <?? ??>
<p>
<need need> ????, ??? ??? vue ????? ??????? : </p>
<p>
<need> ??? ??? vue? ????? ??? ?? ??? ???? ?? ??? (jQuery? ?????) el ??? ???????. </p>
<v> ??? Vue? ?? ??? (? : ?? ??? ?? ????? ??) ?? ?? <p>?? ???? ?? ?? ? ? ??????. ?? ?? ?? VUE? HTML ???? ???????. </p>
<p> ??? <?? ??>
<add> ?? ? ?? ??? vue ????? ?? ???? ???????.<pre class='brush:php;toolbar:false;'><tr> class="item">
<td><input type="text" v-model="item.description" /></td>
<td><input type="number" v-model="item.price" /></td>
<td><input type="number" v-model="item.quantity" /></td>
<td><pre class="brush:php;toolbar:false"><code class="javascript">$('table').on('mouseup keyup', 'input[type=number]', calculateTotals);</pre>.00</td>
</tr>
??? ???
<<<> ??? ? ?? ? ??>
function calculateTotals() { const subtotals = $('.item').map((idx, val) => calculateSubtotal(val)).get(); const total = subtotals.reduce((a, v) => a + Number(v), 0); $('.total td:eq(1)').text(formatAsCurrency(total)); }
<tr> class="item"> <td><input type="text" v-model="item.description" /></td> <td><input type="number" v-model="item.price" /></td> <td><input type="number" v-model="item.quantity" /></td> <td><pre class="brush:php;toolbar:false"><code class="javascript">$('table').on('mouseup keyup', 'input[type=number]', calculateTotals);.00
?? ? ??>
function calculateTotals() { const subtotals = $('.item').map((idx, val) => calculateSubtotal(val)).get(); const total = subtotals.reduce((a, v) => a + Number(v), 0); $('.total td:eq(1)').text(formatAsCurrency(total)); }
??
? ?????? ?? (KB)? ?? ?????. ?? ??? ?? ??? jQuery? ??? ? ? ??? ?? ??? ?? ??? ??? ????? ?? ??? ???? ??? ???? ??? ??? ?????? ?????.
jQuery? vue ? ???? ?? ??
?? ??? ?? ??? ?? ???? ?? ??? ?? ??? ??? ??????. Codepen? ??? ? ? ???? ?? Codepen ??? ?? ? ? ????. "[Codepen Link]"?? ???? ???? ??????.
? ??? jQuery? VUE? ??? ??? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

Node.js?? HTTP ??? ???? ? ?? ???? ??? ????. 1. ?? ????? ????? ??? ??? ? ?? ????? ?? ?? ? https.get () ??? ?? ??? ??? ? ?? ????? ?? ??? ?????. 2.axios? ??? ???? ? ?? ??????. ??? ??? ??? ??? ??? ??? ???/???, ?? JSON ??, ???? ?? ?????. ??? ?? ??? ????? ?? ????. 3. ?? ??? ??? ??? ??? ???? ???? ??? ??? ???? ?????.

JavaScript ??? ??? ?? ?? ? ?? ???? ????. ?? ???? ???, ??, ??, ?, ???? ?? ? ??? ?????. ?? ????? ?? ?? ? ? ??? ????? ?? ??? ??? ????. ??, ?? ? ??? ?? ?? ??? ??? ??? ???? ??? ??? ???? ??? ?? ??? ????. ?? ? ????? ??? ???? ? ??? ? ??? TypeofNull? ??? ?????? ??? ? ????. ? ? ?? ??? ???? ?????? ????? ???? ??? ???? ? ??? ? ? ????.

?? JavaScript ??? ??? ??? ?????? ?? ??? ?? ?? ??? ?? ???? ????. 1. ??? ???? ???? ?? ??? ?? ? ? ???? ??? ??? ?? ? ?? ????? ?????. 2. Angular? ?????? ??? ?? ???? ? ?? ?? ??? ??? ??? ???? ?????. 3. VUE? ???? ?? ??? ???? ?? ?? ??? ?????. ?? ?? ?? ??, ? ??, ???? ???? ? SSR? ???? ??? ??? ??? ???? ? ??? ?????. ???, ??? ??? ??? ????? ????. ??? ??? ??? ??? ?? ????.

?????, JavaScript ???! ?? ? JavaScript ??? ?? ?? ?????! ?? ?? ??? ??? ??? ? ????. Deno?? Oracle? ?? ??, ??? JavaScript ?? ??? ????, Google Chrome ???? ? ??? ??? ???? ?????. ?????! Deno Oracle? "JavaScript"??? ????? Oracle? ?? ??? ??? ??????. Node.js? Deno? ??? ? Ryan Dahl? ??? ?????? ???? ????? JavaScript? ??? ???? Oracle? ????? ???? ?????.

??? JavaScript?? ??? ??? ?????? ?? ???????. ?? ??, ?? ?? ? ??? ??? ?? ????? ????? ?????. 1. ?? ??? ??? ????? ???? ??. ()? ?? ??? ??? ?????. ?. ()? ?? ??? ?? ??? ??? ?? ? ? ????. 2. ?? ??? .catch ()? ???? ?? ??? ??? ?? ??? ??????, ??? ???? ???? ????? ??? ? ????. 3. Promise.all ()? ?? ????? (?? ?? ?? ? ??????? ??), Promise.Race () (? ?? ??? ?? ?) ? Promise.AllSettled () (?? ??? ???? ??)

Cacheapi? ?????? ?? ???? ??? ???? ???, ?? ??? ??? ?? ???? ? ??? ?? ? ???? ??? ??????. 1. ???? ????, ??? ??, ?? ?? ?? ???? ???? ??? ? ????. 2. ??? ?? ?? ??? ?? ? ? ????. 3. ?? ?? ?? ?? ?? ??? ??? ?? ?????. 4. ??? ???? ?? ?? ???? ?? ?? ?? ?? ?? ???? ?? ?? ??? ??? ? ????. 5. ?? ???? ??, ??? ??? ? ??? ??, ?? ??? ? ?? ???? ???? ???? ? ?? ?????. 6.?? ??? ?? ?? ?? ??, ???? ?? ? HTTP ?? ????? ?????? ???????.

.map (), .filter () ? .reduce ()? ?? JavaScript ?? ?? ???? ??? ??? ??? ? ? ????. 1) .map ()? ??? ??? ??? ???? ? ??? ???? ? ?????. 2) .filter ()? ???? ??? ????? ? ?????. 3) .reduce ()? ???? ?? ??? ???? ? ?????. ???? ??? ????? ??? ?? ?? ??? ?????.

JavaScript? ??? ??? ?? ??, ? ? ? ?? ???? ???? ??? ??? ?????. 1. ?? ??? ?? ??? ???? ??? ??? ??? ??? ?? WebAPI? ?????. 2. WebAPI? ??????? ??? ?? ? ? ??? ?? ??? (??? ?? ?? ???? ??)? ????. 3. ??? ??? ?? ??? ?? ??? ?????. ?? ??? ??? ????? ??? ??? ?? ? ???? ?????. 4. ???? ?? (? : Promise. 5. ??? ??? ???? ?? ???? ???? ?? ?? ?? ??? ????? ? ??????.
