Remember I was involved in the development of a Huawei project that requires programs to support several terminal devices, including the Android phone and the Android Pad. Then, in order to save people, the company's rogue to let the Android phone and Android pad are developed by our team. At that time, the project team decided to make two versions of the app, a mobile
Js is compatible with pc-side browsers and has a variety of cell phone floating-Layer Control instances with pop-up tips, jspc
The example in this article describes how js is compatible with pc-side browsers and there are a variety of floating-layer controls for mobile phone
Recently in the development of small terminal, in the processing of a piece of time in the business to find a pit, debugging in the development tool no problem, the results of the phone-side preview on the error,New Date (Time). GetTime () //This is not valid on the mobile sideSo Baidu's.The solution is simple: use regular expressions to
This article describes the JS compatible PC-side browser and has a variety of pop-up tips for mobile phone-side floating-layer control. Share to everyone for your reference. Specifically as follows:
Full instance code click here to download the site.
Usage
or call it in jquery:
Inheriting class alert and confirm hints (in jquery mode):
Html:
Js:
$ (' #btn
In this case, the iphone can be used to adjust the camera and album function, but the Android phone only to adjust the album;This, however, allows the Android phone to simultaneously bring up the camera and the album, but the iphone can only be adjusted to the camera:So, the combination can be written at the outset:And then in the page JS in this write:$ (function ()) { Compatibleinput ();}Determine if the
do not support media features (media Queries) but that support the medium type, which will not read the style, Because its first reads only instead of screen, and the browser does not support media qqueries, the style will not be adopted, whether or not it supports only.10. OtherIf media Type is not explicitly specified in media query, it defaults to all, such as: rel="stylesheet" media="(min-width: 701px) and (max-width: 900px)" href="medium.css" ty
The editor that is compatible with mobile browsing can only be markdown, but the editor does not use markdown and does not want to learn markdown. it is pure html without adding style labels, so it is easy to control the display on the mobile phone (with class) external css
parameters: data type, value to be assigned)* Data type is generally "" "" "" text/plainEvevt.clipboarddata Object compatibility issuesAfter trying, Clipboarddata object compatible with most PX browsers, such as Chrome,firefox, ie, etc., but on the phone side compatibility is not very good,Currently clipboarddata on i
Pre-note: The original JS is to provide a function to implement this function (Window.clipboarddata), but unfortunately, this function only supports IE and FF browser, so the basic use is small. A third-party plug-in library (zeroclipboard.js) is described below.Zeroclipboard.js's address on Git is: Https://github.com/
Compatible with a plug-in phone and PC, just simple up, down, left, right. have uploaded my files inside.Http://files.cnblogs.com/files/yjhua/touchwipe.jsThe source code is as follows:/**----------------------* touchwipe *----------------------* http://www.uedcool.com * by Eddyzhang (Zhang Yonghui) * Version 2.0 * 2011/12/29 * * #example: * $ ("#test"). Touchwipe
The editor that is compatible with mobile browsing can only be markdown, but the editor does not use markdown and does not want to learn markdown. it is pure html without adding style labels, so it is easy to control the display on the mobile phone (with class) external css
JS dialog components, including the implementation of alert and confirmAll resources for this component can be viewed on GitHub with source code GitHubFor an example of this dialog component, please check the demo hereDialogJS dialog pop-up windowUsage this is the contentor call it in jquery: $ (' #btn_dialogjquery '). Dialog ({target: "#dialog-contentjq", Mask:true, Width:500,height:300,title: ' title '})Inheriting class alert and confirm hints
shutdown asynchronous operationDatabase Restore : Historical backup record, restore database or single table, statistics backup time and file sizeSQL Editor: Powerful SQL Editor, support edit Statement complex query statement, generate dynamic report, export ExcelAccess records: Record the time of each IP visit, the source region, the network operator, and the number of visits and detailed times per IPIP blacklist: Blocked IP blocked access to website foreground - . Traffic statistics: PV c
asynchronous operationDatabase Restore : Historical backup record, restore database or single table, statistics backup time and file sizeSQL Editor: Powerful SQL Editor, support edit Statement complex query statement, generate dynamic report, export ExcelAccess records: Record the time of each IP visit, the source region, the network operator, and the number of visits and detailed times per IPIP blacklist: Blocked IP blocked access to website foreground - . Traffic statistics: PV clicks a
page scrolling down Ajax How to get the data implemented (compatible mobile)
$ (window). Scroll (function () {var scrolltop = $ (this). ScrollTop ();
var scrollheight = $ (document). Height ();
var WindowHeight = $ (this). Height ();
if (scrolltop + windowheight >= scrollheight) {loadpromotions ();
}
});
var page = 1; var moravaliable = true;//Identity and data can load function loadpromotions () {if (moravalia
There is a waterfall-type layout needs, so find the next, most of the internet with jquery control, the interface is too complex, looks very cumbersome, I need more simple, so I can only writeIn fact, the principle is to use CS to control, then we just need to the corresponding interface to plan on the line, for example, I a page to be divided into 2 columns, and
This article mainly introduces the JS-compatible PC-side browser and has a variety of pop-up tips of the mobile phone-side floating-layer control, example analysis of JavaScript a variety of pop-up effect of the implementation techniques, very practical value, the need for friends can refer to the
Full instance code click here to download the site.
Usage
?
1 2 3 4 5 6 7 8
or c
, task start off asynchronous operation 16 . Database restore : Historical backup record, restore database or single table, statistics backup time and file size 17 . SQL Editor: Powerful SQL Editor, support edit Statement complex query statement, generate dynamic report, can export Excel 18 . Access records: Log each IP access time, source region, network operator, count the number of visits per IP and verbose time 19 . IP blacklist: Blocked IP blocked access to Web site foreground
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.