猿问

selflog_show并没有调用,求解答

<script type="text/javascript" src="js/lhgcore.js"></script>

    <script type="text/javascript" src="js/lhgdialog.js"></script>

<script type="text/javascript">

function selflog_show(id){

var num = document.getElementById("number").value;

J.dialog.get({id: 'haoyue_creat',title: '购物成功',width: 600,height:400, link: '<%=path%>/servlet/CartServlet?id='+id+'&num='+num+'&action=add', cover:true});

}

function add(){

var num = parseInt(document.getElementById("number").value);

if(num < 100) {

document.getElementById("number").value = ++num;

}

}

function sub()

      {

        var num = parseInt(document.getElementById("number").value);

        if(num>1)

        {

            document.getElementById("number").value = --num;

        }

      }

</script>


weibo_笑笑浮生若梦_0
浏览 1467回答 1
1回答

anet

你不调用,那肯定不会自动调用啊那个只是个函数声明
随时随地看视频慕课网APP

相关分类

Java
JavaScript
我要回答