How to use JQ to call ajax (with free and permanent background URL)

On the Ajax operation of jQ the front About AJAX (Baidu Encyclopedia) JQ calls AJAX instance 1. load() method of jquery 2. getJSON method of jquery 3.jquery's $. get() method 4.jquery's post() method 5. jquery's $. ajax() method Free interface the front Although JQ is not used in our work now, ...

Posted by kelharis on Fri, 19 Jun 2020 03:45:20 -0700

Some problems of writing interface with mongoose to swagger

Before there was a project, the leader said that I used mongoose to swagger to write down the back-end interface. Although I had not written the back-end interface before, I wanted to have colleagues and accepted the work happily. First to ask colleagues, and then... Have not used; so Baidu to see if there is a relevant tutorial 😭 , well, it's ...

Posted by Gorillas on Thu, 11 Jun 2020 22:56:59 -0700

iOS Animation-Panorama

This is the second in a series. Students who have read the previous article already know that the title "scene" refers to view and "window" refers to view.View.maskThe panorama combs masks and mask animations.If you're not familiar with iOS masks, it's a good idea to look at them first First. Windows change more than scenes ...

Posted by Petrushka on Sun, 07 Jun 2020 18:45:30 -0700

Swift 4.0 multiple TableViewCell multiple request complex interface solution

ComplicatedUIAndMutiRequestDemo This project is a multi-layer complex structure and multi request interface implementation case. No, please advise. Thank you:) explain: The interface layout of this project is mainly Moya selected by IGListKit for network request. Overview effect Requirements Xcode 9.0+ iOS 9.0+ Swift 4.0+ CocoaPods Exam ...

Posted by markjoe on Thu, 28 May 2020 08:09:38 -0700

Swift uses SnapKit to realize highly adaptive UICollectionViewCell

problem In our daily development, we often use the adaptation of UICollectionViewCell and UITableViewCell. Solution In the previous MVC development, after using SnapKit to deal with the highly adaptive problem of UICollectionViewCell, I always wanted to take the time to sort it out. Next, I will use some code to ex ...

Posted by SteveMT on Mon, 04 May 2020 16:46:26 -0700

Thinking about two methods of multithreading ticket selling

package com.swift.duoxiancheng; class Ticket extends Thread { Ticket(String name) { super(name); // Constructor: set thread name } public static int ticket = 1000; @Override public void run() { while (true) { synchronized ("lock") { if (ticket > 0) { tic ...

Posted by tnewton on Sun, 03 May 2020 18:55:22 -0700

iOS network status judgment scheme (supports iOS 11 and iPhone x)

In the previous iPhone, we can judge the network status according to the network status view above the navigation bar. (this kind of plan is not very good) This solution is not available on iPhone X phones.   We can judge the network state through the Reachability Reachability github address: https://github.com/tonymillion/Reachability Super si ...

Posted by prosolutions on Sun, 03 May 2020 16:58:58 -0700

ios entry advertising

This article introduces a function that almost every APP needs to use. The APP starts the entry advertisement. I originally wanted to make ios android into Demo and put it on github. Considering the time relationship, it's OK. But I want to make sure that the code here can be run after copying and pasting, because I am also the God of copying a ...

Posted by Zetusko on Fri, 01 May 2020 04:11:30 -0700

Swift notes < 9 > enumeration and structure

enumeration Enumeration concept Enumeration defines a set of related values of a common type that you can use in your code in a safe way Enumeration in C/OC language specifies that the related name is a set of integer values The enumeration in Swift is more flexible. It can provide a string, a character or an integer or floating-point value S ...

Posted by BinaryBird on Thu, 30 Apr 2020 13:44:31 -0700

On the 03 string operation of swift

String operation 01 get length var a = "he l lo" print(a.count) // Calculated space, output 7 02 String.Index type The String.Index type represents the position of a character in a string. You can use a[String.Index] to get the character at a certain position. var a = "hello" print(a.startIndex) // Output Index(_rawBits: 1) print(a[a.startInde ...

Posted by Jenski on Fri, 17 Apr 2020 21:45:53 -0700