Daniel will take you 5 minutes to create a Flask project!

Get ready Install: pip install flaskFlask Quick start: http://docs.jinkan.org/docs/flash/quickstart.html "QuickStart" Rapid construction Build in the project root directory: webapp package directory, where the flash code is stored. There is a "init. Py" file in the package templates directory to store template files Stati ...

Posted by blueman on Fri, 03 Jan 2020 12:51:48 -0800

Use of Bootstrap tab page switch

Html code: <!DOCTYPE html> <html lang="en"> <head> <base target="_self"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="cache-control" content="no-cache,must-ridat ...

Posted by jwilliam on Fri, 03 Jan 2020 12:38:42 -0800

Django instance - static access

Project framework Mydjango blog migrations static jquery-3.3.1.slim.min.js templates index.html login.html admin.py apps.py models.py tests.py urls.py views.py Mydjango settings.py urls.py wsgi.py ...

Posted by jbulaswad on Thu, 02 Jan 2020 10:39:33 -0800

Simple JAVA crawler 51Jobs

Using the Jsoup tool, it is an HTML parser that can directly parse an address or HTML file. You can also manipulate data through Dom,CSS, and operation methods of type JQuery. Official document address of Jsoup: https://jsoup.org/cookbook/introduction/parsing-a-document Note: in case of garbled code, you need to check the encoding method of the ...

Posted by RootKit on Thu, 02 Jan 2020 08:54:52 -0800

Realize real-time display of progress bar such as file export and write

  1. First you need to download the progress bar plug-in. The URL is as follows http://www.jq22.com/jquery-info436 2. Copy the JS and CSS files in the extracted folder to the corresponding CSS and JS files in the project. 3. Introducing js and css <link rel="stylesheet" href="css/jquery.circliful.css"/> <scrip ...

Posted by DeFacto on Thu, 02 Jan 2020 03:22:21 -0800

Hiding and displaying of jQuery

jquery hidden display show. If it is implemented in a button, toggle() method is used to switch the visible state of the element. If the element is visible, these files will be hidden. Otherwise, hidden files will be displayed //html <head> <meta charset="UTF-8"> <title>Hide and show effects</t ...

Posted by MasK on Thu, 02 Jan 2020 00:49:59 -0800

The difference between jquery each and for

1. Difference between. each()] and. each()] and (). each() $. each is used to traverse array, object, array object, code form (arr,function(index,value)) or (obj, function(key, value) {}) (). each is used to traverse dom. The code form is (). each is used to traverse dom. The code form is ('li '). each (function() {var XXX = ...

Posted by thenature4u on Wed, 01 Jan 2020 23:20:57 -0800

bootstrap+swiper to make sliding navigation

Requirement: the nav component of bootstrap is fixed as a whole, and the content can slide Scenario: too much nav content of bootstrap will wrap lines <ul class="nav nav-tabs" id="a-nav"> <li class="active"> <a href="#user-tab" class="active" data-toggle="tab"><span cl ...

Posted by kevinbarker on Wed, 01 Jan 2020 08:07:23 -0800

The record of the shift of the click event of < li > label binding on the Android

First, record the details: Recently, I participated in a project, and need to count the consumption details of users in the past six months. The mui framework is used. The js part is as follows: function initMonth() { var html=""; var x=1; html +='<ul id="monthList">' for (var i=0;i<=5;i++){ ...

Posted by kodlcan on Wed, 01 Jan 2020 06:41:01 -0800

IP address regular expression with * validation

There are a lot of regular expressions for IP address found on the Internet, but we don't see regular expressions with '*'. Usually when we set IP, we will set IP segment (0-255) or use '*' instead.   1. Next is the regular expression without '*' var checkName = /^(?:(?:1[0-9][0-9]\.)|(?:2[0-4][0-9]\.)|(?:25[0-5]\.)|(?: ...

Posted by infernon on Wed, 01 Jan 2020 05:52:46 -0800