<script type="text/javascript">function TotalPrice(arg1) parent.document.getElementById location.search.substring(1)).value = arg1;}</script>
<script type="text/javascript"> function Misure(arg2){parent.document.getElementById(location.search.substring(1)).value = arg2;}</script>
我有兩個函數,每個函數都應該向相同的textarea發送一個值。這個腳本並沒有把我的功能價值,而只是最後一個;我怎麼能在兩個textarea裏面顯示這兩個值?謝謝在同一個文本區域內顯示多個函數值
在第一個函數中,你在'arg1'後面缺少一個'{'''''在'getElementById'後面缺少' – depperm