Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Jquery-* *1-13 number Two numbers (2,4) add, subtract, multiply and divide to specify a number (8) to find the complete Html.
Jquery-* *1-13 number Two numbers (2,4) add, subtract, multiply and divide to specify a number (8) to find the complete Html.
& lt! DOCTYPE? HTML & gt

& lthtml & gt

& lttitle & gt73 & lt/title & gt;

& lthead & gt

& ltstyle & gt

& lt/style & gt;

& lt script? src = "/jquery-latest . js " & gt; & lt/script & gt;

& lt/head & gt;

& ltbody & gt

Input result

& ltdiv? id = ' output ' & gt& lt/div & gt;

& lt/body & gt;

& lt script & gt

$(function(){

$('button ')。 Click (function () {

var? The result? =? $('#result ')。 val();

var? Output? =? [];

for(var? Me? =? 1; ? Me? & lt=? 13; ? i++){

for(var? j? =? 1; ? j? & lt=? 13; ? j++){

What if (number (1)? -? Number (j)? ==? Results) {

output.push(i? +? ? -? '? +? j? +? ? =?' ? +? Results);

output . push(' & lt; br/>;' );

}

What if (number (1)? /? Number (j)? ==? Results) {

output.push(i? +? ? /? '? +? j? +? ? =?' ? +? Results);

output . push(' & lt; br/>;' );

}

}

for(var? j? =? Me; ? j? & lt=? 13; ? j++){

What if (number (1)? +? Number (j)? ==? Results) {

output.push(i? +? ? +? '? +? j? +? ? =?' ? +? Results);

output . push(' & lt; br/>;' );

}

What if (number (1)? *? Number (j)? ==? Results) {

output.push(i? +? ? *? '? +? j? +? ? =?' ? +? Results);

output . push(' & lt; br/>;' );

}

}

}

$('#output ')。 html(output . join('));

});

});

& lt/script & gt;

& lt/html & gt;