From aabac816fd639c9ee33832fe8c57cccd2c94f701 Mon Sep 17 00:00:00 2001 From: Yoby Date: Sun, 25 Apr 2021 16:37:56 +0800 Subject: [PATCH] 0 --- weui/README.md | 1 + weui/demo/form5.html | 5 +- weui/demo/js102.html | 2 +- weui/demo/js103.html | 74 +++ weui/index.html | 7 + weui/js/fn.js | 1456 +++++++++++++++++++++++++++++++++++++++--- weui/js/sidebar.js | 4 +- weui/php/ver | 2 +- 8 files changed, 1440 insertions(+), 111 deletions(-) create mode 100644 weui/demo/js103.html diff --git a/weui/README.md b/weui/README.md index a258f03..362cdb9 100644 --- a/weui/README.md +++ b/weui/README.md @@ -28,6 +28,7 @@ php.js所有方法在插件js方法中都有简单介绍,会不断增加;很多 新版本将后台服务由php改为go语言提供! ### 更新日志 ![](https://img.shields.io/badge/Date-%E6%9B%B4%E6%96%B0%E6%97%A5%E5%BF%97-1) +- 2021-4-22 v6.03 重写fn.js,新增一些函数,全部使用export导出函数,里面函数使用必须import {md5,dump} from 'js/fn.js'这样导入,需要哪个导入哪个;新增js表格排序,支持string,int,float,date四种类型能排序常见数据类型 - 2021-3-26 V6.02 删除js函数setcookie,因为此函数存在设置过期时间不生效,使用ls.setCookie替代,修复md5函数错误,新增统计站点pv,uv,此接口(/pvuv)可以用来统计任何静态页面,包括跨域名,原理是传递每个页面的url生成的md5值,类型1是uv,0是pv. - 2021-3-21 v6.01 修复底部自动加载在安卓部分手机下不能加载. - 2021-3-20 v6.0 发布最新6.0版本,所有后台都由原来php改为golang提供,包括静态页面,端口:8885,可以自己修改后编译,默认提供x6|4位编译后win10,linux可执行文件,你本地可以不安装任何环境就能运行动态的页面展示效果,数据库采用sqlite3,不管是哪个系统编译都需要gcc支持. diff --git a/weui/demo/form5.html b/weui/demo/form5.html index 7d4c262..61846f1 100644 --- a/weui/demo/form5.html +++ b/weui/demo/form5.html @@ -57,7 +57,10 @@

title: "喜欢的美女", items: ['柳岩','赵丽颖','杨颖','苍井空'], onChange: function(d) { - console.log(this, d); + $.post("/ver",{value:d.values},function(res){ +//console.log(res) +$("#mobile").select("update", { items: [{title:'语文',value:57},{title:'数学',value:17}]}) +},'json'); }, onClose: function() { console.log("close"); diff --git a/weui/demo/js102.html b/weui/demo/js102.html index c5dc407..d9a3cee 100644 --- a/weui/demo/js102.html +++ b/weui/demo/js102.html @@ -35,7 +35,7 @@ .menu-right h5:first-child{margin-top:0;} .menu-right ul{overflow: hidden;} -.menu-right ul li{text-align: center;} +.menu-right ul li{text-align: center;list-style: none;} .menu-right ul li a{display:block; position: absolute; left:3px; top:7px; bottom:7px; right:3px;} .menu-right ul li:nth-child(3n+1) a{left:0; right:7px;} .menu-right ul li:nth-child(3n) a{right:0; left:7px;} diff --git a/weui/demo/js103.html b/weui/demo/js103.html new file mode 100644 index 0000000..56828fa --- /dev/null +++ b/weui/demo/js103.html @@ -0,0 +1,74 @@ + + + + + + + + + + + + +暂无 + + + + + diff --git a/weui/index.html b/weui/index.html index 30c3605..b865c83 100644 --- a/weui/index.html +++ b/weui/index.html @@ -9,6 +9,7 @@ +