技术需知

技术需要知道的知识


JavaScript文件命名

<h3>原则</h3> <ol> <li>文件命名请使用下划线命名规范。</li> <li>文件命名尽量清晰,优先考虑其可读性,因此,请尽量少使用缩写与拼音。当然,术语类的缩写可以接受。如lib下的custom包下的文件,请使用xxx_util的命名方式</li> <li>全部小写</li> </ol> <h3>各类型脚本文件命名规约</h3> <table> <thead> <tr> <th>对象类型</th> <th>命名格式</th> <th>格式说明</th> <th>备注</th> </tr> </thead> <tbody> <tr> <td>Client Script</td> <td>xxx_cs.js</td> <td>xxx = 对象名.cs = 客户端脚本的缩写(固定)</td> <td>例:sale_order_cs.js</td> </tr> <tr> <td>User Event Script</td> <td>xxx_ue.js</td> <td>xxx = 对象名.ue = 用户事件脚本的缩写(固定)</td> <td>例:sale_order_ue.js</td> </tr> <tr> <td>Suitelet Script</td> <td>xxx_sl.js</td> <td>xxx = 对象名.sl = Suitelet脚本的缩写(固定)</td> <td>例:sale_order_sl.js</td> </tr> <tr> <td>Scheduled Script</td> <td>xxx_ss.js</td> <td>xxx = 对象名.ss = 计划脚本的缩写(固定)</td> <td>例:sale_order_ss.js</td> </tr> <tr> <td>Portlet Script</td> <td>xxx_pl.js</td> <td>xxx = 对象名.pl = 区块脚本的缩写(固定)</td> <td>例:sale_order_pl.js</td> </tr> <tr> <td>Restlet Script</td> <td>xxx_rl.js</td> <td>xxx = 对象名.rl = WS接口脚本的缩写(固定)</td> <td>例:sale_order_rl.js</td> </tr> <tr> <td>Mass Update Script</td> <td>xxx_mu.js</td> <td>xxx = 对象名.mu = 批量更新脚本的缩写(固定)</td> <td>例:sale_order_mu.js</td> </tr> <tr> <td>Workflow Action Script</td> <td>xxx_wf.js</td> <td>xxx = 对象名.wf = 工作流动作脚本的缩写(固定)</td> <td>例:sale_order_wf.js</td> </tr> <tr> <td>Bundle installation Script</td> <td>xxx_bi.js</td> <td>xxx = 对象名.bi =bundle安装脚本的缩写(固定)</td> <td>例:sale_order_bi.js</td> </tr> </tbody> </table>

页面列表

ITEM_HTML