Generally, when commercial software develops to a certain extent, there will be a need for multilingual versions, commonly known as localization. For example, the Traditional Chinese version, English version, and Japanese version. At this time, we need to use Mui files to achieve multi-language software functions.
First, you need to understand that there is a mechanism under wince, that is, when the application software is started, it will find the s
Because the MUI framework is introduced in the project, it is not necessary to introduce jquery, but it is often written in the jquery format when interacting with the background, so I think it is necessary to mention the AJAX request of the MUI package here;The 1,mui framework, based on the Htm5plus XMLHttpRequest, encapsulates commonly used AJAX functions, supp
Mui rewrite the back method to call the back method, and the page is refreshed immediately when the returned result is returned.
Requirements:
After page B is operated on page A ----- B, page A's data changes.
1. You can click the button on the android server or use the local return key to return the result.
Listen to the return button of the Local Machine. If you click it, call the prepared custom refresh event.
(Function ($, doc ){
$. OldBack
Mui refers to multi-language support. It can support multiple languages in the wince system and switch as needed. The following describes the specific implementation:
1. add multiple languages:
Create a wince project, right-click the project in Solution Explorer, and select Properties. A dialog box is displayed. Select "local" in the list on the left and select the supported language on the right. Here I select French, Japan, Chinese (PRC) and Eng
MUI this UI framework, for me this kind of CSS novice, read the code inside is really difficult, and how to say there are some big pits in the framework, I such a small white, it takes a while to learn. Rather than React-native, Facebook did a good job of introducing a flexbox concept, which is much more powerful than writing css+div style layouts. And a lot of the conceptual and Android development layout is a bit like.I directly write Hm, the use of
Recently contacted a mobile app framework, CSS Library is Mui,js library is 5+runtime. Personal feeling these two libraries are particularly convenient to use.Words not much to say, directly on the code:This is a reference to Baidu map JS This is a MUI-encapsulated JS that can be used to invoke the mobile device's underlying functionality:HTML code: JS Call Bottom:Mui.plusready (function () {plus.geoloca
A Mui installanother language for your Windows installation, meaning if you have an English version you can change the language to one of the following languages.
The ISO contains the following ages.
0401 Arabic ara. Mui0402 Bulgarian BG. Mui041a Croatian HR. Mui0405 Czech CS. Mui0406 Danish da. Mui0413 Dutch (standard) nL. Mui0425 Estonian et. Mui040b Finnish fi. Mui040c French (standard) Fr. Mui0407 German ger. Mui0408 Greek El. Mui040d Hebrew Heb.
For example:HTML code: HappinessHutsCbdHappinessHutsCbdThe page Overflow section does not appear because the page is not initialized, and the following code is required to resolve the issue:JS Code:(function ($) {$ (". Mui-scroll-wrapper"). Scroll ({bounce:false,//whether the scroll bar has elastic default is TrueIndicators:false,//Whether the scroll bar is displayed, the default is True});}) (MUI);Hbuilder
Queried the MUI index list and found that the index-related content was only
Js:
Mui.ready (function () {var header = Document.queryselector (' Header.mui-bar ');var list = document.getElementById (' list ');List.style.height = (document.body.offsetheight-header.offsetheight) + ' px '; Height of displayWindow.indexedlist = new MUI. Indexedlist (list);
});
The Js:mui.indexedlist.js needed
The CSS:
MUI Official website: http://dev.dcloud.net.cn/mui/Before using, download hbuilder:http://www.dcloud.io/, and then create the MUI project in the mobile app, it will automatically generate the required CSS files and JS files. First step: Introduce the necessary files
Introducing CSS and JS:
Step Two: Write the necessary structure
Step Three: Write the nec
ObjectiveHave you looked at the previous two articles for a little bit of an itch?Let's start with an example of a simple answer, as well as MUI-related contentMuiOfficial website: http://dcloudio.github.io/mui/Description: I hope you can read through the official website, this is the basis for future developmentBeginNew ProjectClick on the new mobile app on the home page, as follows:or right-click New in t
Usage of tabs on the top of MUI (tab-top-webview-main ),
PrefaceMUI is a high-performance front-end framework closest to the native APP experience. It has important functions: pull-down refresh, slide navigation, sliding trigger menu, top (bottom) tab, etc.
A small bug encountered recently when I used MUI for mobile app applications. By the way, I studied this tab-top-webview-main. Here I will share it wit
The MUI layout is modeled after the bootstrap:Mui-rowMUI-COL-XS/MUI-COL-SM (two screen modes)MUI to initialize: at In order to adapt to the phone screen, the MUI Bar page display is divided into the main page and sub-page, that is, the introduction of the page to the homepage, jump to do according to the page, such as
WebView (network view) can load a display page, which can be viewed as a browser.When we use MUI Development Html5+app, is actually called the device's WebKit kernel, that is, the browser's call, the browser to implement the device interface to the device operation, the current implementation of html5+ can call camera, recording, GPS and other things such as the lower, For mobile browser cores, of course.We can even use iostream, the application of fi
1.AndroidStudio offline packaged MUIHow to package offline please take a look at the essay "Androidstudio Offline Pack MUI"2. Integrated Aurora pushOfficial Document: https://docs.jiguang.cn/jpush/client/Android/android_guide/Recommended for Jcenter Auto-integration, manual integration is error-prone for beginnersDevelopers using Jcenter Auto-integration do not need to add jars and so,jcenter in the project to automatically complete dependencies, and
In fact, according to the MUI document to write, there is no problem:In the JSP:6th option Clamp Item-86th option Clamp Item-8In JS:$ (function () { addlistrefresh ();}); function Addlistrefresh () { mui.init ({ pullrefresh: { container: ' #surveryList ', down : { height : 50,//Optional. Default 50. Trigger Pull-up load drag distance auto:false,//optional, default false. Auto-Pull load o
; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://img1.51cto.com/attachment/201410/6/2474833_ 1412571244cxlt.png "" 549 "height=" 231 "/> It turns out that there is no problem with the NetFx3 source file on the installation media ... I'm not going to tell you that I've been tossing it all night ... The decision was made to reinstall the
Because the project to jump new page and the scene of the parameters too many, and some pages need to jump rotation painting is not the same, each time write a lot of Openwindow method configuration items too cumbersome, so they simply encapsulated a small function, used to facilitate WebView page jump and transfer parameters.Here's how:/*MUI Tool method*/varMUIFN = { /*jump to a new page (can be passed to a parameter)*/OPENURL:function(url,option
1, first in the Mui.ajax error function appears:"SyntaxError Unexpected token Such a mistake, then the type in the Mui.ajax written JSONP on it!2. The data returned by the MUI success function is parsed by JSON before it can be used:Parsing method: Json.parse () or json.stringify ()The total code is as follows:Mui.ajax (url,{ dataType: "Jsonp",//The server returns JSON format data type: "Get",//http request type timeout:10000,//timeout set to
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.