9. Implementing CORS Cross-Domain Elegantly with Spring Boot
Preface
Our springboot rack already contains mysql,redis, timed tasks, mail services, SMS services, file uploads and downloads, docker-compose building mirrors, and more.
Let's move on to another common problem.In general, the front and back ends are separated, and the original intention of this scaffold is to separate the front and back ends, ...
Posted by damnsaiyan on Mon, 09 Dec 2019 03:44:44 -0800
Deep copy and shallow copy - deep parsing
Preface
For basic types such as numbers, boolean, and strings, assignment, shallow copy, and deep copy are meaningless because each time a new space is opened up in the heap, pointing to a new address.
1. Assignment:
Point to the same address, do not copy.
var obj1 = {name:'circular', radius:10, point:{x:0,y:0}};
var obj2 = obj1;
obj2.name = ...
Posted by lenhewitt on Sun, 08 Dec 2019 21:57:38 -0800
[four Twirl template engine] 3. Common templates
Now let's look at the typical usage of templates.
layout
Now declare a view / main.scala.html template as the main template:
@(title: String)(content: Html)
<!DOCTYPE html>
<html>
<head>
<title>@title</title>
</head>
<body>
<section class="content">@content</section> ...
Posted by Tryweryn on Sun, 08 Dec 2019 07:13:13 -0800
What is the best way to detect mobile devices?
Is there a reliable way to detect whether users are using mobile devices in jQuery?Is it similar to the CSS @media property?If the browser is on a handheld device, I want to run other scripts.
The jQuery $.browser function is not what I want.
#1st floor
Small is beautiful to me, so I'm using this technology:
In a CSS file:
/* Sma ...
Posted by Madzz on Sun, 08 Dec 2019 01:02:31 -0800
python3 django page addition, deletion, modification and query
Previous articles
Python3 Django admin initialization background management project (mysql)
Python3 Django admin add business module, multi field search
Based on the blog module in the django project of the above article, make a custom crud page for the article
Page template
Create a new directory templates in the root directory of the projec ...
Posted by cjdesign on Sun, 08 Dec 2019 00:32:22 -0800
Table drag Sortable
Sortable is a JavaScript library for reordering drag and drop lists on modern browsers and touch devices. No jQuery is required. Supports Meteor, AngularJS, React, Polymer, Vue, Knockout and any CSS library, such as Bootstrap
Function Description: Javascript library for reordering drag and drop lists. (__JavaScript library for reorderable drag ...
Posted by morphius on Sat, 07 Dec 2019 21:01:55 -0800
[code Notes] JS keeps function single responsibility and flexible combination
For example, in the following code, the order data requested from the server is as follows, which needs to be processed as follows1. Display corresponding value according to status (0-in progress, 1-completed, 2-order exception)2. Display startTime as yyyy MM DD from time stamp3. If the field value is an empty string, set the field value to '-- ...
Posted by iii on Sat, 07 Dec 2019 14:32:37 -0800
Detailed explanation of the up and down scrolling bulletin board of jQuery implementation
Before doing the project, I always wanted to make an up and down scroll bulletin board to display the latest announcement information of the website. At the beginning, I didn't have a clear idea. I found a lot of source code on the Internet, but I found that I couldn't satisfy myself. Some of them still had some small problems. For example, som ...
Posted by ngolehung84 on Thu, 05 Dec 2019 11:31:16 -0800
php uses the full calendar plug-in
Recently, I found a lot of plug-ins that are not easy to use when working on the project of curriculum. I accidentally saw the full calendar, which is very simple and convenient. I posted a project page first
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<!-- Calendar plug-in -->
<link href='/public/s ...
Posted by mostwantedunm on Thu, 05 Dec 2019 07:09:46 -0800
jQuery----JQuery animation (hide() and show())
hide() and show() methods can be used to set animation effects. This paper describes the effects of these two methods.
Hide (parameter 1, parameter 2):
Parameter 1: time, in milliseconds, indicating the time for object hiding
Parameter 2: callback function, which is triggered after the object is hidden.
Show (parameter 1, parameter 2):
Paramete ...
Posted by strangebeer on Thu, 05 Dec 2019 06:06:35 -0800