上一页 1 ··· 11 12 13 14 15
摘要: 用jquery获取图片src(不知道为什么总是undefined): $('img').eq(i).src; $('img').eq(i).attr('src'); //上面两种都是获取不到,不知道为什么 最后用 var src=document.getElementsByTagName('img' 阅读全文
posted @ 2018-06-20 10:56 chenlw101 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 添加css: page-break-before:always 实现分页 window.print()//实现打印 阅读全文
posted @ 2018-06-19 14:54 chenlw101 阅读(102) 评论(0) 推荐(0) 编辑
摘要: //添加sql的数据 $sqldatas=getParam('sqldatas');//这里的sqldatas是从前台传过来的json字符串 //将json字符串转为json对象 $sqldata=json_decode($sqldatas,true); //插入多个值的时候 $sql= "INSE 阅读全文
posted @ 2018-06-19 10:38 chenlw101 阅读(892) 评论(0) 推荐(0) 编辑
摘要: <tr ng-repeat="item in datas" ng-module="datas"> <td> <img class ="img" ng-src="{{item.picurl}}"> </td> </tr> 可以使用ng-src来repeat图片 阅读全文
posted @ 2018-06-19 10:28 chenlw101 阅读(249) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15