how to control the pop-up box to pop up only once when the login is complete, turn it off and it won"t pop up again, and if you cut to another page, it won"t pop up. Will it pop up again the next time you log in?
what I do now is pop up every time I cut to the front page, because I wrote such a piece of js code on the home page
<script type="text/javascript">
$(document).ready(function () {
var userId = $(".userId").attr("value");
// sessionStorage
window.sessionStorage.setItem("userId", userId);
// sessionStorage
var data = window.sessionStorage.getItem("userId");
if (data != null) {
$.ajax({
//url: positionPath+"/position/app/cityinfo-add",
url: positionPath + "/position/app/checkinfo",
data: {"id": data},
dataType: "json",
type: "post",
success: function (jsonData) {
console.log(jsonData["data"]["checkinfo"]);
console.log(jsonData["msg"]);
console.log(jsonData["status"]);
if (1 == jsonData["data"]["checkinfo"]) {
$("-sharpregister_perfectInfo").show();
}
}
});
}
// sessionStorage
window.sessionStorage.clear();
}
)
</script>