Method of using rem.js in mobile terminal

The following code is based on REM experience, I wrote a rem.js, found very useful, can be applied to all mobile h5 pages of adaptive requirements: Code 1: window.onload = function(){ getRem(720,100) }; window.onresize = function(){ getRem(720,100) }; function getRem(pwidth,prem){ var html = document.getElementsByTagName("html")[0] ...

Posted by kiss the robot on Sat, 20 Apr 2019 21:18:36 -0700

C# Simple Implementation of Sending Mobile Short Messages

Write a program to send short messages from computers to mobile phones, and find three ways from the Internet: (1) Send short messages using web service interface, which can be sent using web service provided by sina, but need to register; (2) Send short messages using short message mao, which should be a common way of comparison, if you need t ...

Posted by malcome_thompson on Sat, 20 Apr 2019 20:51:33 -0700

Beautiful Soup crawls original microblogs and pictures (code + comment) of designated users

python version: 3.7 Introduction: Change user_id and cookie in main_spider to their ID and cookie. Open Microblog Mobile Edition https://m.weibo.cn/ Enter the designated user's home page, such as Li Ronghao's home page: https://m.weibo.cn/u/1739046981?uid=1739046981&luicode=10000011&lfid=231093_-_selffollowed 1739046981 is ...

Posted by Tylor_Famous on Sat, 20 Apr 2019 12:21:33 -0700

Advanced Play of Cloud Functions in Small Programs-Routing

In general, a cloud function completes a single logical function, which is the same method as a class, as shown in the figure: However, limited free users can only use 20 cloud functions at most. To realize multiple complex functions in a single cloud function, it is necessary to distinguish them by parameters, which is not easy to read and m ...

Posted by cli_man on Sat, 20 Apr 2019 10:24:33 -0700

Android Integrated Mob Platform to Acquire Short Message Verification Code

First, when using the SMS authentication code of Mob platform, you need to register your account on the official website and obtain the developer's qualification to apply for AppKey and AppSecret. Register Mob Account Official Address: http://www.mob.com After registering, Click to enter the background. Enter the background and clic ...

Posted by xionhack on Sat, 20 Apr 2019 09:27:34 -0700

Design Patterns-Strategy Patterns

Focus on a Wechat Public Number: Learn React from scratch. It tells us some design patterns in a humorous way and summarizes them. The difference between the novice and the veteran is not how many languages he knows and how many books he reads, but the clarity of his ideas and good programming habits. One thing to avoid when writing code is sim ...

Posted by zelot1980 on Fri, 19 Apr 2019 17:57:33 -0700

Scanner classes in Java (Part 1)

Scanner is a class in the java.util package that retrieves input of the original type, such as int, double, and strings. It's the easiest way to read input in Java programs, but it's not very effective if you want an input method to be used where time is a constraint in competitive programming. To create an object of a Scanner class, we usual ...

Posted by snorcha on Fri, 19 Apr 2019 14:15:34 -0700

Android Multithread Breakpoint Download

Project Profile: This project demo ah Android file multithreaded breakpoint Download Detailed introduction: The application involves only: 1. Use of HttpURLConnection 2. The use of multithreading 3. File breakpoint Download 4. Use of image progress bar 5. Use of text progress bar The application ...

Posted by aussie_clint on Thu, 18 Apr 2019 17:18:33 -0700

Java Career - Java Foundation - Regular Expressions

regular expression I. overview 1. Concept: Expressions that conform to certain rules. Function: Used for special operation of strings. 3. Characteristic: Used for some specific symbols to represent some code operations, which can simplify writing. So learning regular expressions is learning the use of some special symbols. 4. B ...

Posted by devstudio on Thu, 18 Apr 2019 09:54:34 -0700

How to Use Android studio to Realize Chinese and English Mobile Information Pages

First of all, we need to know that what we do is information pages, and Chinese and English pages. How to achieve it? As long as the situation is well laid out, the Sino-British interface can be realized. Layout can be divided into many kinds. Linear layout and relative layout are nested here. Next, I will explain the general idea, points for ...

Posted by ramma03 on Wed, 17 Apr 2019 20:09:32 -0700