2012年10月19日
摘要: //去除前后空格 function String.prototype.trim() { return this.replace(/(^\s+)|(\s+$)/g, ""); }//应用function panduan() { var zcmc = document.getElementById("zcmc").value; zcmc = trim(zcmc); if (zcmc == "" || zcmc.length > 25) { alert("... 阅读全文
posted @ 2012-10-19 13:08 小东北 阅读(1170) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.IO.Ports;namespace SeriaCom{ public partial class Form1 : Form { string GPS_text = ""; ... 阅读全文
posted @ 2012-10-19 08:14 小东北 阅读(641) 评论(0) 推荐(0) 编辑
摘要: select to_char(jzmj,'fm9999990.00') as jzmj from t_fwcq如果数据库中存的是12.00,经过上面的处理查出来的结果就是12.00 阅读全文
posted @ 2012-10-19 08:08 小东北 阅读(2615) 评论(0) 推荐(0) 编辑