javascript的自定义对象

来源:互联网 发布:张炘炀现状 知乎 编辑:程序博客网 时间:2024/05/16 11:04
<!DOCTYPE html><html lang="en"><head>    <meta http-equiv="content-type" content="text/html;charset=UTF-8">    <title>javascript的自定义对象</title>    <script type="text/javascript">        <!--          var monitor={              price:1800,              factory:"元洪公司",              type:"A等",              size:17          };          document.write("显示器的生产厂家:",monitor.factory,"<br/>");        document.write("显示器的型号:",monitor.type,"<br/>");        document.write("显示器的尺寸:",monitor.size,"<br/>");        document.write("显示器的价格:",monitor.price,"<br/>");        -->    </script></head><body></body></html>
0 0
原创粉丝点击