選擇珠寶js業務邏輯原始碼

2022-02-20 04:27:31 字數 1945 閱讀 7771

//珠寶定製類->珠寶選擇控制項

function custom(customcontent));

this.tabmenuchange();//初始化選項卡效果

this.selectstonemain();//初始化選擇石頭區域選項卡

this.determinestonebtnclick();//初始化化確定按鈕的單擊事件

var _this_=this;

this.stonestime=null;//石頭按鈕上的mouseout指標

this.materialstime=null;//材質按鈕上的mouseout指標

this.stonebuttons.mouseover(function()).mouseout(function(e)else,500);

};}).click(function());

this.materialbuttons.mouseover(function()).mouseout(function(e)else,500);

};}).click(function());

this.customfingers.click(function());

};custom.prototype=;

};}else;

};img.src=url;

},tabmenuchange:function());

},selectstonemain:function());

},determinestonebtnclick:function());

},determinestonebtnclick_showorhide:function(thisobj),

stonebuttonmouseover:function(thisobj),

stonebuttonmouseout:function(thisobj)

});},

materialbuttonmouseover:function(thisobj),

materialbuttonmouseout:function(thisobj)

});},

stonebuttonchangestyle:function(thisobj));

},materialbuttonchangestyle:function(thisobj));

},senddata:function(thisobj)

*/var _this_=this;

this.preloadingimg.show();//資料返回前執行顯示loading

var data=;

$.post("/gemcustomlastmanagerdingzhiaction.do?param=loadcombineinfo",data,function(result);

},"json");

},setvalue:function(result)

*/this.preloadingimg.hide();

this.zuhecodeinput.val(result.combinecode);

this.custombigimage.attr("src","/"+result.combinepicpath);

this.customprice.text(result.totalmoney);

},changefingersetprice:function(thisobj);

//傳送值去請求返回**值

$.post("/gemcustomlastmanagerdingzhiaction.do?param=getcombinemoneybycombinecodeandfingercode",v,function(result),"json");

} };

//珠寶定製類->珠寶選擇控制項end

策略型業務邏輯處理選擇

目前常見的分層結構是包括展現層 業務邏輯層 持久層的。那麼在業務邏輯層中,是會有非常多的複雜的業務邏輯判斷的,例如 if a.geta type.a else if a.geta type.higher else 這些if else判斷是有非常多的弊端的 對於新的需求,很難做出變更 隨著更多條件的加...

js方法原始碼

去除html標籤 function removehtmltag str ie8相容placeholder標籤 不能輸入以0開頭的正數且不能輸入0,否則返回空字串 input name helpclass.seq keyup function else ps 不能輸入以0開頭的正整數但是可以輸入0的正...

多選外掛程式JS原始碼。

基於jquery的自定義外掛程式 多選頻率外掛程式 function 驗證引數是否合法 function vlidatefrequencyoptions options 頻率型別 基礎資料中的name if frequencytype in options var i it false each d...