生成更具可读性和维护性的JavaScript代码,Adam.JSGenerator

fmms 7年前
     <p><img title="adam_logo_baseline.gif" border="0" alt="adam_logo_baseline.gif" src="https://simg.open-open.com/show/a8e800133e0bb1fd2ae750912094d024.gif" width="178" height="68" /><br /> <br /> Adam.JSGenerator 可让你编写代码来生成更具可读性和维护性的 JavaScript 代码片段。</p>    <p>例如:</p>    <pre class="brush:javascript; toolbar: true; auto-links: false;">return "jQuery('" + selector + "').css({color:'" + color + "';background:'" + background +"'});";</pre>可以写成:    <pre class="brush:javascript; toolbar: true; auto-links: false;">return JS.JQuery(selector).Dot("css").Call(JS.Object(new {color = color, background = background}));</pre>    <p></p>    <p><strong>项目主页:</strong><a href="http://www.open-open.com/lib/view/home/1326242236265" target="_blank">http://www.open-open.com/lib/view/home/1326242236265</a></p>