大哥大姐们小弟初学帮帮忙高分
function吧
全部回复
仅看楼主
level 1
cslyr616 楼主
朋友们帮忙啦 现在里面构建了一个按钮,但我想还构建一个文本框和一个
GridView显示检索的信息我头都大了不知道怎么写了,帮忙改改了谢谢
function CSearch(id) {
var self = this;
CControl.call(this, "div#" + id);
this.PreSearchEvent = null;
this.PostSearchEvent = null;
this.m_$.html("<img id='button' src='/pics/tab0.gif'>search</img>");
this.m_$.find("#button").click(function () {
self.Search("test");
});
} CSearch.prototype = new CControl(); CSearch.prototype.Search = function (search) {
if (this.PreSearchEvent != null) {
this.PreSearchEvent(search);
} var wrap = new BlueWebServiceWrap();
var result = wrap.Search(search); alert(search);
///Todo: 增加搜索程序 if (this.PostSearchEvent != null) {
this.PostSearchEvent(result);
}
2013年04月06日 01点04分 1
1