无序的列表&range是否支持判断

<html>

<body>

<p>一个无序列表的例子:</p>

<ul>
  <li>苹果 document.implementation.hasFeature('Range','2.0')</li>
  <li>橘子</li>
  <li>香蕉</li>

</ul>

<script>
var supportRange=document.implementation.hasFeature('Range','2.0');
var supportRange2=(typeof document.createRange=='function');

document.write(supportRange +" "); 
document.write(supportRange2);

</script>

</body>

</html>

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章