摘要: 1.设置 overflow scroll 在IOS中滑动不流畅的问题 -webkit-overflow-scrolling: touch 2.用bootstrap 模态框弹在IOS中弹不出的问题 cursor: pointer; 阅读全文
posted @ 2017-11-18 11:58 丁丶丁 阅读(1172) 评论(0) 推荐(0)
摘要: 1.jsop解决跨域 jsonp就是利用<script>标签没有跨域限制的“漏洞”(历史遗迹啊)来达到与第三方通讯的目的。当需要通讯时,本站脚本创建一个<script>元素,地址指向第三方的API网址; 通过url拼接回调,只能发送get请求,在进行账户 密码等重要发送时会显示明文。 2.后台设置所 阅读全文
posted @ 2017-11-03 10:29 丁丶丁 阅读(371) 评论(0) 推荐(0)
摘要: /* 获取本周、本季度、本月、上月的开端日期、停止日期*/ var now = new Date(); //当前日期 var nowDayOfWeek = now.getDay(); //今天本周的第几天 var nowDay = now.getDate(); //当前日 var nowMonth 阅读全文
posted @ 2017-10-14 15:42 丁丶丁 阅读(1424) 评论(0) 推荐(0)
摘要: 1.引包 <link rel="stylesheet" href="../lib/css/conmon.css"> <link rel="stylesheet" href="../lib/css/bootstrap.min.css"> <link rel="stylesheet" href="../ 阅读全文
posted @ 2017-09-21 16:11 丁丶丁 阅读(307) 评论(0) 推荐(0)
摘要: <input placeholder="选择文件" style="width:210px" id="chooseFile"class="form-control macCodeText" maxlength="10" type="file"/> <input type="submit"class=" 阅读全文
posted @ 2017-09-09 09:33 丁丶丁 阅读(561) 评论(0) 推荐(0)
摘要: $scope.downLoad=function(id){ var tt =new Date().getTime(); var url = root +'/ly/fileInfo/download.action?fileInfo.id='+id 这是下载文件的URL和参数 var form=$("< 阅读全文
posted @ 2017-09-09 09:28 丁丶丁 阅读(763) 评论(0) 推荐(0)
摘要: 模板引擎渲染的数据必须是json格式,如果传过来的数据是嵌套数组,可以先转换: 例如:var b={} b.c=data <script type="text/html" id="templatPlace"> {{each Items as value indexl}} <p class="size 阅读全文
posted @ 2017-07-27 17:44 丁丶丁 阅读(180) 评论(0) 推荐(0)
摘要: 内置函数data时间格式转换 function getDateString(date) { var year = date.getFullYear(); var month = date.getMonth() + 1; var day = date.getDate(); // 当月的几号 var h 阅读全文
posted @ 2017-06-20 09:02 丁丶丁 阅读(450) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> *{ margin:0; padding:0; } #demo{ width:300px; height:400px 阅读全文
posted @ 2017-06-09 12:43 丁丶丁 阅读(256) 评论(0) 推荐(0)