📄 logic.js
字号:
/* Copyright (c) 2004-2008, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details*/if(!dojo._hasResource["dojox.dtl.filter.logic"]){dojo._hasResource["dojox.dtl.filter.logic"]=true;dojo.provide("dojox.dtl.filter.logic");dojo.mixin(dojox.dtl.filter.logic,{default_:function(_1,_2){return _1||_2||"";},default_if_none:function(_3,_4){return (_3===null)?_4||"":_3||"";},divisibleby:function(_5,_6){return (parseInt(_5)%parseInt(_6))==0;},_yesno:/\s*,\s*/g,yesno:function(_7,_8){if(!_8){_8="yes,no,maybe";}var _9=_8.split(dojox.dtl.filter.logic._yesno);if(_9.length<2){return _7;}if(_7){return _9[0];}if((!_7&&_7!==null)||_9.length<3){return _9[1];}return _9[2];}});}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -