script src="prototype.js"/scriptdiv id="div1" style="font-size:20px;font-weight:bold"ObjectRange/divscriptvar range = $R(1, 10, false);var range2 = $R(1, 10, true); alert(range.merge(range2));// truealert(range.include(1));// truealert(range.include(5));// truealert(range.include(10)); // truealert(range2.include(1));// truealert(range2.include(5));// falsealert(range2.include(10));/script[ 查看全文 ]