asp.net尽量不在js里写<%%>
eg:
<script type="text/javascript"> var rootsid=""; var loginid=""; function load() { if("<%= Number.userid %>"==null) { rootsid="1"; } else { rootsid="<%= Number.userid %>"; loginid="<%= Number.loginid %>"; } } </script>
尽量不要这样写