随笔分类 -  javaScript

摘要:1 var ua = navigator.userAgent.toLowerCase(); 2 if (ua.match(/MicroMessenger/i) == "micromessenger" 3 || ua.match(/iphone os/i) == "iphone os" || ua.match(/ipad/i) == "ipa... 阅读全文
posted @ 2016-11-25 14:30 灰色雨逸 阅读(867) 评论(1) 推荐(1)
摘要:弹出窗css 1 /*遮罩层*/ 2 .expP_shade { position: absolute; top: 0; left: 0; z-index: 98; background-color: #000; opacity: .20; filter: alpha(opacity=20); wi... 阅读全文
posted @ 2015-06-16 08:59 灰色雨逸 阅读(232) 评论(0) 推荐(0)
摘要:【js提示】 文件中加/// 即可在当前js文件使用exp_validate.js中全局变量时显示提示【JSON》》String】var obj = { name: ["asd", "123"], val: "", age: "" };var str=JSON.stringify(obj);【St... 阅读全文
posted @ 2015-03-06 16:41 灰色雨逸 阅读(139) 评论(0) 推荐(0)
摘要:简单实用的js基础数据验证prototype 1 /// 2 /*数据验证 liuph 2015-03-03 3 扩展String方法 4 */ 5 6 //验证整数 7 String.prototype.exp_isInt = function () { 8 retur... 阅读全文
posted @ 2015-03-04 10:04 灰色雨逸 阅读(276) 评论(0) 推荐(0)
摘要:引入jquery.Jcrop.min.css和jquery.Jcrop.min.js参数/接口说明options 参数说明名称 默认值 说明allowSelect true 允许新选框allowMove true 允许选框移动allowResize true... 阅读全文
posted @ 2015-01-05 12:58 灰色雨逸 阅读(1207) 评论(0) 推荐(0)
摘要:使用项目一的js调用项目二的数据1.项目一 1 @{ 2 Layout = null; 3 } 4 5 6 7 8 9 10 js跨域调用11 12 28 29 30 31 32 33 HTML代码2.项目二 1 using Syst... 阅读全文
posted @ 2014-12-17 10:06 灰色雨逸 阅读(354) 评论(0) 推荐(0)