1原生js下拉列表框点击显示隐藏
function select(obj) {
if (obj.value === ‘1’) {
$("#tr0").hide();
} else {
$("#tr0").show();
}
}
2标签name相同隐藏域的值会被优先传递,例如
<input name="id" type="hidden"> <input name="id" >
隐藏域的值会被传递到后端,而输入的值会被覆盖。
3
坐标拾取系统
高德:https://lbs.amap.com/console/show/picker
百度:http://api.map.baidu.com/lbsapi/getpoint/index.html
4微信内部打开引导页
<script>
/**/
let name, value, str = location.href, num = str.indexOf("?"); //取得整个地址栏
str = str.substr(num + 1); //取得所有参数 stringvar.substr(start [, length ]
let arr = str.split("&"); //各个参数放到数组里
for (let i = 0; i < arr.length; i++) {
num = arr[i].indexOf("=");
if (num > 0) {
name = arr[i].substring(0, num);
value = arr[i].substr(num + 1);
this[name] = value;
}
}
let key = arr[0].split("=");
let keyVlaue = key[1];
function is_weixin() {
var ua = navigator.userAgent.toLowerCase();
if (ua.match(/MicroMessenger/i) == "micromessenger") {
return true;
} else {
return false;
}
}
var isWeixin = is_weixin();
if ((keyVlaue === '' || keyVlaue === null || typeof keyVlaue === 'undefined') && isWeixin) {
window.location.href = 'http://www.kqwad.com/d.html';
}
</script>
引导页代码
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>微信弹出遮罩</title>
</head>
<body>
<!--vue-ssr-outlet-->
</body>
</html>
5:微信内部H5页面调用微信支付。
5.1网页授权:https://pay.weixin.qq.com/wiki/doc/api/H5.php?chapter=4_4
5.2调用支付:https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=7_7&index=6
6npm升级到最新版本命令
npm install npm@latest -g
7新构建了两个springBoot模块,在一个模块引用另一个模块的时候,打包报错
程序包…不存在(坑了我3个小时),引入下面插件就可,删除springBoot原生的maven构建插件
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>8</source>
<target>8</target>
</configuration>
</plugin>
8支付模块参考文档
https://doc.minapp.com/js-sdk/payment/alipay-pay.html