摘要: $('#txtbaiduRote').live("keyup", function (event) { if (event.keyCode == 13) { BaiduRote(); } }); 阅读全文
posted @ 2013-09-03 15:44 Mancy 阅读(176) 评论(0) 推荐(0) 编辑
摘要: $(document).ready(function () { $("form").submit(function () { return false; }); }); 阅读全文
posted @ 2013-09-03 15:41 Mancy 阅读(152) 评论(0) 推荐(0) 编辑
摘要: Array.prototype.remove = function(from, to) { var rest = this.slice((to || from) + 1 || this.length); this.length = from < 0 ? this.length + from : from; return this.push.apply(this, rest);};这个函数扩展了JavaScript的内置对象Array,这样,我们以后的所有声明的数组都会自动的拥有remove能力,我们来看看这个方法的用法:var array = ["one", &quo 阅读全文
posted @ 2013-09-03 15:26 Mancy 阅读(2190) 评论(0) 推荐(0) 编辑
摘要: 前台: var item = { name: _name, tel: _tel }; contacts.push(item); $("#HfContacts").val(JSON.stringify(contacts));后台:[DataContract] class Contact { [DataMember] public string name { get; set; } [DataMember] public string tel { get; set; } } //保存联系方式 Dictionary wayContact = new Dictionary(); L 阅读全文
posted @ 2013-09-03 15:02 Mancy 阅读(532) 评论(0) 推荐(0) 编辑