![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
javaScript
无情何其多
努力是成功的基本
展开
-
Struts2注解错误There is no Action mapped for namespace [/].....
异常: 警告: Could not find action or result: /s23s41h43/testAction/test There is no Action mapped for namespace [/testAction] and action name [test] associated with context path [/s23s41h43]. - [unk原创 2014-11-23 00:07:24 · 2105 阅读 · 0 评论 -
html字符串拼接时,预防元素也变成字符串
第二种方法: var resultHtml = ''; var tempDatas = []; for(var i = 0, len = datas.length; i < len; i++){ tempDatas.push('<li>' + datas[i] + '</li>'); } resultHtml = '<ul>' + tempDatas.join('') + '</ul>'; 第二种稍微高级一点,有考虑过效率问题的基本会采用这种,转载 2016-03-21 10:29:02 · 1928 阅读 · 0 评论