Change response to only respond one set of values

前端 未结 3 1221
傲寒
傲寒 2021-01-29 08:43

I am very novice at asp. Here is my code:

response.write(\"

        
3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-29 09:24

    Ad an IF statement, based on your counter.

    for each x in rs.Fields
        counter = counter + 1
        if(counter = 1) then
          response.write "var CC" & counter & "=" & x.value & ";"
        end if
    next
    

提交回复
热议问题