path居然一直在報錯,不知道為什么了
<%@ page language="java" contentType="text/html; charset=utf-8"
? ? pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<link href="css/main.css" rel="stylesheet" type="text/css">
<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>
2018-08-16
請問是哪里的問題啊,我也是一樣的情況,感謝.
2017-06-28
解決的可以出來解釋一下嗎?
2016-12-23
我也出現(xiàn)同樣的問題!求指導(dǎo)
2016-08-11
路過。。。。
2016-07-23
已經(jīng)解決了