用X.toFixed(2)是5舍6入的, function xround(x, num){ return Math.round(x * Math.pow(10, num)) / Math.pow(10, num) ;} xround(X,2)这样才是四舍五入 Read More
posted @ 2017-07-19 11:37 小赖皮 Views(95) Comments(0) Diggs(0) Edit
View Code Read More
posted @ 2013-09-16 10:56 小赖皮 Views(183) Comments(0) Diggs(0) Edit
文章中提到利用Mono,可以用C#开发安卓APP,帖子中也表达了关于使用java和C#各种看法,在这里转载下,希望可以讨论讨论。步骤:1.下载并安装Xamarinhttp://xamarin.com/download注册Xamarin账号,Role选择Academic(学者)即可;运行XamarinInstaller.exe在线安装程序,需要一个良好的网络环境,所需的安装程序体积大约1.44G,安装过程一路默认即可。2.破解网上找的破解:http://download.csdn.net/detail/flydoos/5820325解压缩后,将文件覆盖到指定位置即可。3.开发开发MonoAndr Read More
posted @ 2013-08-13 15:34 小赖皮 Views(443) Comments(0) Diggs(0) Edit
function checkSJtitle() { var title = $.trim($("#ctl00_ctRight_txtTitle").val()); if (title == "" || title == null) { return false; } if (title.length >= 5 && title.length <= 15) { title = escape(title); $.ajax({ type: "post", dataType: "html", . Read More
posted @ 2013-07-23 14:17 小赖皮 Views(202) Comments(0) Diggs(0) Edit