12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- <!doctype html>
- <html>
- <head>
- <meta charset="UTF-8">
- </head>
- <!--jQuery开始 -->
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/jquery.js"></script>
- <!--jQuery结束 -->
- <body>
- <div></div>
- <script type="text/javascript">
- $(function(){
-
- });
-
- function GridTableBase(op){
- var defaultOption={};
- var option=$.extends({},defaultOption,op);
- var finallyState={SUCCESS:0,FAIULRE:1};
- }
-
- GridTableBase.prototype.createToolBarBase=function(paramArr){
- return this.finallyState.SUCCESS;
- }
- GridTableBase.prototype.createTableBase=function(paramArr){
- return this.finallyState.SUCCESS;
- }
- GridTableBase.prototype.createPaperBase=function(paramArr){
- return this.finallyState.SUCCESS;
- }
- /**
- *工具条
- */
- function ToolBar(){
- var defaultOption={};
- var option=$.extends({},defaultOption,op);
- var finallyState={SUCCESS:0,FAIULRE:1};
- }
-
- ToolBar.prototype.create=function(paramArr){
- if(paramArr instanceof Array)throw new Error("请检查数据格式是否符合规则");
- var html="<div>";
- for(var index=0,len=paramArr.length;index<len;index++){
-
- }
-
- }
- function LiList(paramArr,keyName,divClass,ulClass,liClass,fn_before,fn,fn_after){
- if(paramArr instanceof Array) throw new Error("请检查数据格式是否为数组");
- fn_before($dom,paramArr);
- var htmlStr="<div class="+divClass+">";
- var htmlStr+="<ul class="+ulClass+">"
- if(paramArr.length==0)
- for(var index=0,len=paramArr.length;index<len;index++){
- var tempStr=fn instanceof Function?fn(paramArr[index])?paramArr[index][keyName];
- htmlStr+="<li class=>"+tempStr+"</li>"
- }
- htmlStr+="</ul></div>";
- if(fn_after instanceof Function)
- fn_after($dom,paramArr);
- // return "SUCCESS";
- }
-
- LiList.prototype.changeStyle(){
- if(this.$dom.find("div").size()>0)
- this.$dom.find("div").attr({"class":divClass});
- if(this.$dom.find("ul").size()>0)
- this.$dom.find("ul").attr({"class":ulClass});
- if(this.$dom.find("li").size()>0)
- this.$dom.find("li").attr({"class":liClass});
- }
-
- function UlList(paramArr,keyName,divClass,ulClass,liClass,fn_before,fn,fn_after){
- if(paramArr instanceof Array) throw new Error("请检查数据格式是否为数组");
- var htmlStr="<div><ul>"
- for(var index,len=paramArr;index<len;index++){
- htmlStr+="<p>"+paramArr.title+"</p><li></li>";
- }
- }
- Math.uuid=function(len){
- var digtal=new Date().getTime();
- var charStr="0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z";
- var charArr=charStr.split(" ");
- var uuidStr="";
- for(var index=0;index<len;index++){
- var indexi=Math.round(Math.random()*62);
- console.log("index---->"+indexi)
- uuidStr+=charArr[indexi];
- };
- return digtal+uuidStr;
- }
-
-
-
- </script>
- </body>
- </html>
|