<%=(""+peopleNum).split("").reverse().join("").replace(/(\d{3})/g,"$1,").replace(/\,$/,"").split("").reverse().join("")%>你这行,貌似是JS代码啊,可是这样的写法,应该是后台加载数据的吧?
应该是不能混用的。而且JS代码的执行,只能在script的标签呢的。
不能直接写在HTML中的。
应该是不能混用的。而且JS代码的执行,只能在script的标签呢的。
不能直接写在HTML中的。
<%%>是服务端的吧,语法错误了
</script>
包着呢
Multiple annotations found at this line:
- Syntax error, insert ";" to complete
Statement
- Syntax error, insert ")" to complete
MethodInvocation
我看符号啥的 没少啊
Multiple annotations found at this line:
- Syntax error, insert ";" to complete
Statement
- Syntax error, insert ")" to complete
MethodInvocation
我看符号啥的 没少啊
_.each(mydata1,function(item) //这个看起来像js的,换一个试下
Multiple annotations found at this line:
- Syntax error, insert ";" to complete
Statement
- Syntax error, insert ")" to complete
MethodInvocation
我看符号啥的 没少啊
_.each(mydata1,function(item) //这个看起来像js的,换一个试下
指教一下。。
<%foreach(var item in mydata1){%>
.......................................................
<%});%>
建议LZ看一下JSTL
还是想<% %>这样印出来