1. /**
  2. * scrollBox 当html内容的高度和宽度大于手机屏幕大小时,需要进行左右上下滚动查看内容,可将html内容置于此容器实现滚动查看效果<br>:
  3. * <strong>
  4. * 页面需要导入的文件
  5. * <ul>
  6. * <li>cmp-scrollBox.js</li>
  7. * <li>cmp-listView.js</li>
  8. * <li>cmp-listView.css</li>
  9. * </ul>
  10. * </strong>
  11. * @module scrollBox
  12. * @subtitle 盒子滚动
  13. */
  14.  
  15. /**
  16. * 盒滚动容器<br>
  17. * 当html内容的高度和宽度大于手机屏幕大小时,需要进行左右上下滚动查看内容,可将html内容置于此容器实现滚动查看效果
  18. * @class scrollBox
  19. * @namespace cmp
  20. * @constructor
  21. * @param {String} container 列表容器标识,querySelector能定位的css选择器均可,比如:id、.class等,如:"#id"、".class"(必须符合以上两种形式的查询)
  22. * @example
  23. * ```
  24. * <script>
  25. * cmp.scrollBox("#container");
  26. * </script>
  27. * ```
  28. */
Top