支持移动端的jquery的计算器
XML/HTML Code
- <div class="kiner-calc-container">
- <div class="result-panel">
- <span class="data"></span>
- </div>
- <div class="calc-container">
- <div class="row">
- <div class="key" data-key="("><span>(</span></div>
- <div class="key" data-key=")"><span>)</span></div>
- <div class="key" data-key="delAll"><span>CE</span></div>
- <div class="key" data-key="/"><span>÷</span></div>
- </div>
- <div class="row">
- <div class="key" data-key="7"><span>7</span></div>
- <div class="key" data-key="8"><span>8</span></div>
- <div class="key" data-key="9"><span>9</span></div>
- <div class="key" data-key="*"><span>×</span></div>
- </div>
- <div class="row">
- <div class="key" data-key="4"><span>4</span></div>
- <div class="key" data-key="5"><span>5</span></div>
- <div class="key" data-key="6"><span>6</span></div>
- <div class="key" data-key="-"><span>-</span></div>
- </div>
- <div class="row">
- <div class="key" data-key="1"><span>1</span></div>
- <div class="key" data-key="2"><span>2</span></div>
- <div class="key" data-key="3"><span>3</span></div>
- <div class="key" data-key="+"><span>+</span></div>
- </div>
- <div class="row">
- <div class="key" data-key="."><span>.</span></div>
- <div class="key" data-key="0"><span>0</span></div>
- <div class="key" data-key="del"><span>del</span></div>
- <div class="key special" data-key="eq"><span>=</span></div>
- </div>
- </div>
- </div>
原文地址:http://www.freejs.net/article_jquerywenzi_738.html