comparameter.js 1.0 KB

123456789101112131415161718192021222324252627282930
  1. /**
  2. * Created by tanqilin on 2016/6/20.
  3. */
  4. (function(w){
  5. function classCompar(){
  6. //基础
  7. }
  8. classCompar.prototype.templateCheckbox = function(data) {
  9. // 参数
  10. data = data ? data : {};
  11. return "<label class="checkbox-inline i-checks">\
  12. <div class="icheckbox_square-green" style="position: relative;">\
  13. <input type="checkbox" value="option1" style="position: absolute; opacity: 0;">\
  14. <ins class="iCheck-helper" ></ins>\
  15. </div>\
  16. <span>红色</span>\
  17. <input type="text" placeholder="红色" class="form-control" style="display:inline-block; width:80px;" />\
  18. </label>";
  19. };
  20. classCompar.prototype.classList = function(first_argument) {
  21. // 类型类别
  22. };
  23. classCompar.prototype.tableThead = function(first_argument) {
  24. // 数据表格Thead
  25. };
  26. classCompar.prototype.tabletbody = function(first_argument) {
  27. // 数据表格tbody
  28. };
  29. w.$compar = new classCompar();
  30. })(window);