随笔分类 -  Javascript

摘要:参考: http://www.cnblogs.com/phphuaibei/archive/2011/12/09/2282570.html var browser = { versions : function () { var u = navigator.userAgent, app = navigator.appVersion; return { trident : u.indexOf('Trident') > -1, //IE内核 presto : u.indexOf('Presto') > -1, //opera内核 webKit : u.i 阅读全文
posted @ 2012-05-16 13:28 wjn2010 阅读(586) 评论(0) 推荐(0)
摘要:转自: http://blog.sina.com.cn/s/blog_475429950100ia5o.htmljQuery获取Select选择的Text和Value: 语法解释:1. $("#select_id").change(function(){//code...}); //为Select添加事件,当选择其中一项时触发2. var checkText=$("#select_id").find("option:selected").text(); //获取Select选择的Text3. var checkValue=$(&quo 阅读全文
posted @ 2011-11-25 17:17 wjn2010 阅读(380) 评论(0) 推荐(0)