Tag:Chuan Shen
-
Time:2020-10-6
The crud of SSM requires complicated steps and cannot be explained clearly in one knowledge point, so… The crud runnable project I have done is given directly In fact, the steps are the same as those of SSM query integration, but the method of parameter transfer is different. About the transfer of reference in spring […]
-
Time:2020-10-4
1. Transfer parameters from parent page to child page Copy codeThe code is as follows: //Javascript code$.ajax({ type:”POST”, uri:”../student/studentInfo.action”, data:{ “date”:date, “stuNo”:stuNo }, success:function(data){ var params = “?date=”+date+”&stuNo=”+stuNo; var action = ‘../../page/studentInfo.jsp?’+params; dojo.byId(“student”).src = action; } }); Copy codeThe code is as follows: <iframe src=”../../page/studentInfo.jsp” ></iframe> 2. The child page accepts the parameters of the […]
-
Time:2020-9-29
Generally, in order to facilitate the management of redis cache, we use: to separate different keys for storage cache, so as to facilitate viewing. For example: game:upload_role:1000 game:member_info:2000 game:member_info:state_info:3000 The above structure will be displayed in redis Desktop Manager as follows: We can get all the keys in redis through the keys command. But these […]
-
Time:2020-9-22
Axios basic usage Axios is a promise based HTTP library that can be used in browsers and node.js Medium. It is recommended to use Axios to implement Ajax in Vue. A simple get example new Vue({ el: ‘#app’, data () { return { info: null } }, mounted () { axios .get(‘https://www.runoob.com/try/ajax/json_demo.json’) .then(response => (this.info […]
-
Time:2020-8-6
This paper describes the method of parameter transfer when instantiating PHP class. For your reference, the details are as follows: When we instantiate a PHP class, how do we pass parameters? This depends on how the class is constructed. For example: person.class.php <?php class person{ var $name; var $color; var $sex; var $age; function __construct($name,$age=”,$sex=’boy’){ […]
-
Time:2020-7-15
1、 The background that needs to be passed through CSS There are many media query usages in CSS, such as device size discrimination, whether mouse behavior is supported, whether it is dark mode, whether it is power-saving mode, etc. For example, dark mode, dark theme, which is often mentioned recently: @media (prefers-color-scheme: dark) { /*Dark […]