iOS UIWebView cannot get web title
Recently, I encountered a problem that in the proxy method of UIWebView, the js code executing document.title could not get the title of the page. The code is as follows:
- (void)webViewDidFinishLoad:(UIWebView *)webView
{
// Get the title name of the loaded html file
NSString *title = [webView stringByEvaluatingJavaScriptFromString:@"d ...
Posted by evanesq on Tue, 11 Jun 2019 13:41:09 -0700
Application of Code Dry Goods Multiple tabs Switching
This article is from the Aliyun-Yunqi community, click on the original article Here.
tabsMode mainly summarizes two ways to implement tabs switching: JavaScript / jQuery, and finally implements a component development of jQuery.
overall design
The entire tab design can be designed as a large box (div) with two small boxes (div) n ...
Posted by lrdaramis on Fri, 07 Jun 2019 17:01:43 -0700
Seventy-line script to realize Wechat Notification of Promotion Information
Yesterday, Doudong's LAMY pen was doing another activity, but when it was seen, it had already risen back to its original price. In a fit of anger, I wrote a JS script to automatically query the promotion information and notify me by micro-mail.
Get ready
data acquisition
In data acquisition, we use Node.js to implement a crawler, and regularly ...
Posted by sgs on Thu, 06 Jun 2019 12:26:15 -0700
Notes-JavaWeb Learning Tour 8
Window Object-Timer Method
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<script>
//Timer that executes only once
function fun(){
alert("blast");
}
//Parameter: js code or method ob ...
Posted by yaron on Thu, 06 Jun 2019 10:24:20 -0700
HTML5 API FormData -- Using
FormData
brief introduction
XMLHttpRequest Level 2 adds a new interface FormData. Using FormData objects, we can use JavaScript to simulate a series of form controls with some key-value pairs. We can also use the send() method of XMLHttpRequest to submit this "form" asynchronously. Compared with ordinary ajax, the greatest advantage o ...
Posted by ignite on Wed, 05 Jun 2019 16:01:09 -0700
jquery implements the return of the mobile data list to its original location
Project Requirements: Click to enter the details page, and then click the return button to return to the original location.
Data list diagram:
Note: The data list query uses ajax, which can load the next page of data by pull-up.
Let me start with a brief idea:
1. First, you should get the loaded data from the list page and store the data ...
Posted by edwardtilbury on Wed, 05 Jun 2019 14:51:19 -0700
Why? Can browsers do face detection?
The Shape Detection API has been released for some time, and its main capability is to give the front-end directly available feature detection interface (including barcode, face, text detection). In this paper, we will briefly introduce it and explain the universality of the front-end face detection. (In this paper, we will not talk about arith ...
Posted by BZorch on Wed, 05 Jun 2019 12:21:52 -0700
A vue small demo based on ES6+webpack
Last article A vue Small demo Based on ES5 We talked about how to make a small demo with ES5, vue-router, and let's turn it into an ES6+webpack based demo.
1. Environment Setup and Code Conversion
Let's set up a vue development environment first, according to one of my essays Vue Development Environment Setup and Hot Update , we build the devel ...
Posted by slimjim on Wed, 05 Jun 2019 10:40:41 -0700
A vue Small demo Based on ES5
Now many vue projects are developed based on ES6, and most of my learning vue is based on the API of vue official website, which is based on ES5, so it is a challenge for me to change to the modular writing of the project. Therefore, I intend to make a vue demo based on ES5 first, and then write this demo based on ES6, which is a transition bar ...
Posted by RockRunner on Wed, 05 Jun 2019 10:25:42 -0700
A General Zepto Source Analysis (3) - Evet Module
A General Zepto Source Analysis (3) - Evet Module
Ordinary passers-by, ordinary look. The latest version 1.2.0 is used in the analysis.
zepto can be made up of many modules. The default modules include zepto core module and event, ajax, form, ie. Event module is also one of the more important modules. We can use the method provided by zepto to ...
Posted by koopkoop on Tue, 04 Jun 2019 14:32:36 -0700