Compatibility finishing for ios and Android front end

1. Date Compatibility Under Android Date.parse(new Date('2018-03-30 12:00:00')) Under ios system Date.parse(new Date('2018-03-30 12:00:00')) Conversion is not possible. Solution (compatibility writing) Date.parse(new Date('2018/03/30 12:00:00')) || Date.parse(new Date('2018-03-30 12:00:00')) Encapsul ...

Posted by ChrisDarl on Mon, 13 Jan 2020 03:18:34 +0100

Common methods of JavaScript project practice

On the front road, accumulate slowly 1. Get the parameter value passed by the URL through the parameter name Method 1 GetQueryString:function(name){//Get the parameter value passed by the URL through the parameter name var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var r = window.location.search ...

Posted by dotBz on Sun, 12 Jan 2020 17:45:09 +0100

MUI bottom navigation (highlight change icon)

The bottom navigation bar should be the most commonly used display mode of mainstream apps. I personally think the bottom navigation bar is the most clear and intuitive, generally 4-5 is the best way. Here I made a little thing, that is, when I click a tab, it automatically highlights and changes the icon, so that the overall f ...

Posted by Sangre on Thu, 09 Jan 2020 16:20:10 +0100

An array of iOS data structures

The arrays often used in iOS development are NSArray and NSMutableArray, which are data structures provided by Foundation. Usually, NSArray and NSMutableArray are used in development to meet the development needs. With a learning attitude, Xiaobian is very interested in the implementation of the bottom layer of array data struc ...

Posted by kenshejoe on Tue, 07 Jan 2020 01:59:19 +0100

Screenshot status monitoring - iOS

After receiving the call status monitoring demand, the screenshot status monitoring is added again. When using App, if the user needs to monitor the current status when performing screenshot operation, there are two methods below. One is to replace the screenshot image content (Plan A), the other is to pop up the prompt box (Plan B). The steps ...

Posted by seodevhead on Mon, 06 Jan 2020 12:32:36 +0100

Secret script of iOS hybrid development and debugging (upgraded version)

                   Secret script of iOS hybrid development and debugging , although to a certain extent, it solves the debugging problem in the process of mixed development, but the operation is more troublesome, and it can not be directly ...

Posted by suave4u on Sat, 04 Jan 2020 06:20:53 +0100

iOS category add attribute

We can add attributes to iOS classification through runtime To add attributes, remember a few keywords, 1 1. First, we use @ property to declare a property in. h like a normal class ///xxx+CH.h. here is the. H file of CH classification of xxx class @interface xxx (CH) @property (nonatomic ,strong) NSStri ...

Posted by zysac on Wed, 01 Jan 2020 21:28:37 +0100

The front end realizes image compression and upload (compatible with ios10 system)

Questions: in the near future, we need to make a demand for the front-end to obtain images and compress them, then upload them to the back-end server or upload them to oss, and then transfer the path to the back-end server. During compression, it is found that the system at or below IOS 10 is invalid. After verification, this i ...

Posted by alevsky on Wed, 01 Jan 2020 17:22:31 +0100

ionic4 calls internal App of mobile phone

ionic4 calls internal App of mobile phone There are many significant changes in the upgrading of ionic3 to ionic4. As ionic4 is still in the bate version, there are many areas that have not been improved. Now let's talk about how to call the APP inside the mobile phone in the ionic4 bate version. 1, Install plug-ins that can d ...

Posted by Jbert2 on Tue, 31 Dec 2019 08:16:45 +0100

TUS for File Breakpoint Continuation

TUS is an open source continuation framework for breakpoints on github. The server side is written in go, and the client side supports many kinds. It supports js, andorid, java and IOS.This article will do some analysis on the android side. Let's start with the core part of the framework, which is how to continue.When it comes to continuation, ...

Posted by ady01 on Mon, 30 Dec 2019 22:51:42 +0100