For a simple form submission page, the test is normal in chrome & amp; ie and fails on Android phones. Environment: thinkphp3.2jquery1.11.3layer-v2.1 the bullet layer component currently provides two examples. The normal requests include: {code ...} test chrome & amp; ie & amp; mobile... A simple form submission page can be tested in chrome & ie and fails on Android phones.
Environment:
Currently, two examples are provided. The normal requests include:
$. Post ("/api/sms/send_sms.php", {phone: phone}, function (result) {if (result. status = 1) {resetCode (); // countdown} else {layer. open ({title: 'error', type: 1, skin: 'layui-layer-red', // Style Class Name closeBtn: true, // The close button is not displayed shift: 2, shadeClose: true, // enable the mask to disable content: result. msg });}});
Test chrome & ie & UC browser & change to normal
$. Post ("/index. php? M = active & a = save_info ", {phone: phone}, function (result) {if (result. status = 1) {resetCode (); // countdown} else {layer. open ({title: 'error', type: 1, skin: 'layui-layer-red', // Style Class Name closeBtn: true, // The close button is not displayed shift: 2, shadeClose: true, // enable the mask to disable content: result. msg });}});
In the mobile browser, the layer does not pop up normally.
The two are different. The major post URLs are different. The problem is very strange. Please check the front-end.
Reply content:
A simple form submission page can be tested in chrome & ie and fails on Android phones.
Environment:
Currently, two examples are provided. The normal requests include:
$. Post ("/api/sms/send_sms.php", {phone: phone}, function (result) {if (result. status = 1) {resetCode (); // countdown} else {layer. open ({title: 'error', type: 1, skin: 'layui-layer-red', // Style Class Name closeBtn: true, // The close button is not displayed shift: 2, shadeClose: true, // enable the mask to disable content: result. msg });}});
Test chrome & ie & UC browser & change to normal
$. Post ("/index. php? M = active & a = save_info ", {phone: phone}, function (result) {if (result. status = 1) {resetCode (); // countdown} else {layer. open ({title: 'error', type: 1, skin: 'layui-layer-red', // Style Class Name closeBtn: true, // The close button is not displayed shift: 2, shadeClose: true, // enable the mask to disable content: result. msg });}});
In the mobile browser, the layer does not pop up normally.
The two are different. The major post URLs are different. The problem is very strange. Please check the front-end.
Comment out the code in the function first, and directly execute alert (1) to see if both methods can be executed, and then exclude it a little bit.
Didn't I play it out or didn't I load the layer style?
Does thinkphp perform some filtering, such as verifying whether to log on or not. Recommended orconsole.log(result);Troubleshoot the problem.