当前位置:网站首页>SMS verification before deleting JSP
SMS verification before deleting JSP
2022-06-25 11:42:00 【Duxiaolie】
scene : After deletion, first judge whether the user has checked the data to be deleted , Make a pop-up window and verify the SMS or mobile number first .
/** * 1, pop-up */
function myFunction() {
var bol = $("input[type='checkbox']").is(':checked')
if(bol==false){
alert(' Select at least one delete ');
return ;
}
var email = '${userMap.email}';
var sms = '${userMap.mobile}';
console.log(" I got all the values , Why can't I render it ?"+"${userMap}");
if(email!=null||email!=''){
$('#emailoption').removeAttr("hidden"); // removeAttr() Method to remove the attribute from the selected element .
$('#emailoption').attr("selected", "selected"); // Setting property values
$('#authentication_type').html('<liferay-ui:message key="login.factor.email"/>:');
$('#personFaInfo').val(email.substring(0,3)+"***"+email.substring(email.length-3,email.length));
}else{
// Purpose : If the phone number is not empty , It is selected by default , And do desensitization treatment .( Need to send ( Submit ), Display is the value of desensitization , Submit with real values .)
if(sms!=null||sms!=''){
$('#smsoption').removeAttr("hidden");
$('#smsoption').attr("selected", "selected");
$('#authentication_type').html('<liferay-ui:message key="login.factor.sms"/>:');
$('#personFaInfo').val(sms.substring(0,3)+"***"+sms.substring(sms.length-3,sms.length));
}
}
$('#portsuccess').show(); // Exhibition ,
$('.login_common_pop').show();
}
Summary :
1,jsp in ,"${userMap}" and "${requestScope.userMap}" The same usage .
console.log("${userMap}");
console.log("${requestScope.userMap}");
2,$('#emailoption').removeAttr("hidden"); // removeAttr() Method to remove the attribute from the selected element .
3,$('#emailoption').attr("selected", "selected"); // Set properties . You can also set multiple properties .
4, Tips for handling desensitization data , Desensitization value uses a value , The value to be submitted shall be the value without desensitization .
5,.show() Exhibition ; .hide() hide , Corresponding css style="display: none;".
www.w3school.com.cn Website :https://www.w3school.com.cn/jquery/index.asp
边栏推荐
- 元素定位不到的 9 种情况
- Wait (), notify (), notifyAll (), sleep (), condition, await (), signal()
- Under what circumstances will Flink combine operator chains to form operator chains?
- Shichuang energy rushes to the scientific innovation board: it plans to raise 1.1 billion yuan, with an annual revenue of 700million yuan and a 36% decrease in net profit
- 推荐一款M1电脑可用的虚拟机软件
- Application of analytic hierarchy process in college teaching evaluation system (principle + example + tool)
- 兴业证券是国企吗?在兴业证券开户资金安全吗?
- What are the ways to simulate and burn programs? (including common tools and usage)
- Comparable的使用(用于Arrays.sort)
- 记一次有趣的逻辑SRC挖掘
猜你喜欢

西山科技冲刺科创板:拟募资6.6亿 郭毅军夫妇有60%表决权

Source code analysis of AQS & reentrantlock

Double buffer transparent encryption and decryption driven course paper + project source code based on minifilter framework

Idea local launch Flink task

Flink deeply understands the graph generation process (source code interpretation)

Solution to the timeout scenario of Flink streaming computing (official live broadcast)

Design and implementation of university laboratory goods management information system based on SSH

TCP如何處理三次握手和四次揮手期間的异常

Golden sun education listed in the U.S.: a small cap medium cap stock with a market value of USD 360million

SQL注入漏洞(类型篇)
随机推荐
Spark tuning tool -- detailed explanation of sparklens
Idea local launch Flink task
Leetcode 1249. 移除无效的括号(牛逼,终于做出来了)
Detailed explanation of spark specification
TCP如何处理三次握手和四次挥手期间的异常
Specific meanings of node and edge in Flink graph
wait()、notify()和notifyAll()、sleep()、Condition、await()、signal()
What is the development history, specific uses and structure of the chip
Course paper + code and executable EXE file of library information management system based on C language
Comparison between relu and SIGMOD
Spark history server performance improvement (I) -- Application List
Free access to the global human settlements layer (ghsl) dataset from Gee
Simple use of stream
Introduction to JVM principle
Arrays.asList()
反应c语言程序结构特点的程序
Whole process of web page request
Comparator (for arrays.sort)
SQL注入漏洞(繞過篇)
Source code analysis of AQS & reentrantlock