MUI:Official website: http://dcloudio.github.io/mui/Description: General to read through the official website content, this is the basis for developmentStart1. New ProjectClick on the new mobile app on the home page, as follows:or right-click New in the Project manager, or shortcut key ctrl+n+a 2. Select TemplateSelecting the MUI project here will automatically introduce the MUI's JS and CSS as follows:3.
This article examples for you to share the JS Picture Viewer plug-in use method, the production of mobile phone use of the Web page image Viewer for your reference, the specific content as follows
The last few days in the development of a tailor-made picture viewer for the project, has been initially completed requirements.
The development scenario is: In a multiple file download display list, such as det
element will have scrolling beyond the bottom of the problem, such as the JD above, and when the target navigation scrolls beyond the content area, the scrolling positioning causes the vanishing. such as this page when you turn the browser window "low" scrolling page to the bottom of the you will find the elements of scrolling positioning "deviation", which is beyond the bottom, of course, you will not ask who is so wonderful to "play" Ah, but I would like to say that since doing this is as goo
(".", "\ \.")); varA =NewREGEXP ("\ \" + C + "$")); if(B.match (a)) {return2 } Else { return0 } } }};How to use: another article, feel inferior to the above good, but we can refer to the nextvarBrowser_class =navigator.useragent;varbrowser_class_name1 = Browser_class.match ("Mobile");varBrowser_class_name2 = Browser_class.match ("mobile");varLocation_url =window.location.href;if(Browser_class_name1
= new RegExp ("\ \" + C + "$");if (B.match (a)) {Return 2} else {return 0}}}};How to use:Another article, feel as good as above, but we can refer to the nextCopy CodeThe code is as follows:var browser_class = navigator.useragent;var browser_class_name1 = Browser_class.match ("Mobile");var browser_class_name2 = Browser_class.match ("mobile");var location_url = window.location.href;if (browser_class_name1! =
: 170Number segment (3-bit network number, operators) more and more, rely on memory to judge already more difficult, fortunately, the increasingly popular smartphone, built-in or install small software, calls can show which operator which region.
Permissions: Public from: LabsStatement: This article is only a personal view of the representative. Its originality and the expression of opinions, judgments, data, opinions and statements are irrelevant to the China
network) has 134x (0-8), 135, 136, 137, 138, 139, 150, 151, 152, 158, 159, 182, 183, 184.Segment 3G (TD-SCDMA Network) 157, 187, 1883G Internet Card 147Section 4G, 178From the above we can see that the first is the beginning of "1", the second is "3,4,5,7,8", the third is "0-9", the third is the number "0-9". So we can draw a regular expression that matches the current cell phone number verification.var // validation rules var phonenum = ' 15507621999 '; //
Recently in a project, using jquery Mobile, very unfamiliar to him, the problem of one after another, it is necessary to solve, find a day this problem, put can understand:First understand JQM inside page jump by default is through the AJAX request, must re-refresh the page JS square can be effective, that is, JS does not work, not
This article mainly introduces how to determine the mobile phone number operator by js. if you need it, you can refer to the example in this article to describe how to determine the mobile phone number operator by js. Share it with you for your reference. The details are as follows:
For WEB projects, you may need to d
When running the page, the execution to JS will be judged from the mobile or the PC side, if the mobile side jump to establish the link address, so that there will be no unnecessary waste of load time on the phone sidevarBrowser={versions:function(){ varU = navigator.useragent, app =navigator.appversion; return{//Mobile
Method One: PureJSJudgeUsing this method is both simple and practical, without the need to introduce the jquery library and add the following code to the Method Two: Use Device.JSLibraryDevice. JS is a device used to check the plug-in, using it you can easily determine the device's operating system, as well as whether the device is portrait or landscape.First, we download the device. JS: Https://github.com/
When you add a click event to a custom overlay, you will find that the mobile side is not triggering at all, which is a bug.I recently developed a second edition for my Map app, and I was bothered to add behavior to a cover, the Click event of the custom overlay was not triggered on the iphone, and the open Source Library in the Baidu Map JS API involved a custom overlay Click event that was not valid.I wor
Js simulated mobile phone page file pull-down refresh
The boss said that this function is required. Well, let's take a look at the relevant items.
Finally, a simple drop-down page refresh form is created, which is not too complicated.
View demo
The effects can only be viewed in the simulator, such as in chrome or in a mobile browser. However, some browsers have p
There are PHP and JS, of course, there is a series of HTML, MySQL, CSS and other related development Foundation, also has the foundation of Linux server construction.
But not to Java (I don't want to learn)
Is it possible to develop mobile applications? iOS or Android.
I basically have a requirement to implement a class GTD tool that can now be implemented on the web side.
But I want to make the
, for example,http://192.168.1.11:3000Looking at the codeLooking at the app.js file located in the Www/jxcore folder of the Express sample, the Express Server is implemented in the same as a regular node. JS application:var Express=Require(' Express ');Var app=Express(); app.Get(‘/‘,function(reqRes){Res.Send(' Hello world! (‘+ Date.Now()+")")}) ;var server = app.listen3000 function ({clog " Express server is started. (port:3000) " ;} Express s
JS checks whether the mobile phone or pad access is implemented.
JS checks whether mobile phone or pad access is implemented
S determines whether the mobile phone or pad access content. If you are interested in using JS to determi
There are a lot of mobile adaptation options, and for two years there has been no one standard, and each project is adapted to business needsProgramme one:Initially listening to Li Yanhui Teacher's course using REM layout for a while, but the font calculation is more cumbersome, and less accurateScenario Two:Accidentally in the Q Group Group of friends to share the dynamic change the root node font scheme layout, the head reference a
Swipe. js 2.0 Lightweight Framework for mobile web sliding left and right, swipe. jsmobile
Property summary notes are as follows:
Then we found a perfect lightweight alternative, swipe. js 2. 0. Details are as follows:
// Introduce the css styleClass = "swipe-wrap">// // Javascript: indicates that a piece of JavaScript code is executed when the //
Two reference
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/zeroclipboard/zeroclipboardNote: This JS library does not support compatible
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.