极其丑陋,极其丑陋的一个简单购物车
<!DOCTYPE html>
<html>
<head>
<title>
</title>
<style type="text/css">
#select1,#select2{
width: 350px;
height: 350px;
}
.list,.car{
display: inline-block;
}
</style>
<script type="text/javascript">
window.onload = function(){
/*
给元素添加点击事件
@param btnId:要添加点击事件的元素id
@param fun :事件监听的函数(要执行的操作)
*/
function myClick(btnId,fun){
var btn = document.getElementById(btnId