摘要: <script language="javascript"> var t = 3.1415; alert("int(" + t + ") = " + int(t)); /******** 内置取整函数 *********/ alert("parseInt(" + t + ") = " + parseInt(t)); /******** floor是地板的意思,顾名思义是向下取整 *********/ alert("Math.floor(" + t + " 阅读全文
posted @ 2013-04-21 16:02 清山博客 阅读(262) 评论(0) 推荐(0)
摘要: jQuery获取Select选择的Text和Value:语法解释:$("#select_id").change(function(){//code...});//为Select添加事件,当选择其中一项时触发 varcheckText=$("#select_id").find("option:selected").text();//获取Select选择的Text varcheckValue=$("#select_id").val();//获取Select选择的Value varcheckIndex=$("# 阅读全文
posted @ 2013-04-21 13:16 清山博客 阅读(288) 评论(0) 推荐(0)