This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .xxx { | |
| padding-bottom: constant(safe-area-inset-bottom);/* 兼容 iOS < 11.2 */ | |
| padding-bottom: env(safe-area-inset-bottom); /* 兼容 iOS >= 11.2 */ | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Connection con=DriverManager.getConnection("jdbc:mysql://192.168.99.101:3306/lshop?useUnicode=true&characterEncoding=UTF-8","root","123456"); | |
| Statement stmt=con.createStatement(); | |
| ResultSet rs =stmt.executeQuery("select * from goods"); | |
| while (rs.next()){ | |
| System.out.println(rs.getInt(1)); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (new Promise((resolve, reject)=>{ | |
| uni.request({ | |
| url: this.$config.API+'/api/wx/auth/getSessionCode', | |
| method:"GET", | |
| data:{code:res.code}, | |
| success:res=>{resolve(res)},//其中,res.data才是响应body,res.statusCode是http状态码 | |
| fail:err=>{reject('请求失败')}//这里会有错误信息,例如 err.errMsg:"request:fail" | |
| }) | |
| })).then(data=>{//处理请求结果 | |
| if(data.statusCode!=200||data.data.code!=200){ |