Sample Code that uses mint-ui to implement provincial/municipal level-3 linkage effect,
Reference plug-in: ELE. Me mint-ui component picker function, the specific API can refer to the official site description: http://mint-ui.github.io/docs/#/zh-cn2/picker
Background: The project needs to select a province-city-region cascade effect. I found it from gayhub and decided to use the mint-ui component, because a
Enemy SituationEnemy hero: Bai Gu Jing, Yan Luo Wang, Yu WangLevel features: the probability of brute-force attacks from both sides of the enemy and me increases by 25%Enemy scripture: equipped with immovable scriptureEnemy formation: no impact on raidOur situationOur hero: King Jinjiao, which region, Dizang BodhisattvaOur Scripture: Lohan defatholaw? ImpermanenceOur formation: Golden Horn raidOur equipment: the attack speed of the Kingdom (violent attack), the reply of the Tibetan site, and the
In the latest issue of the. NET 4.0 features series, my colleagues and I will introduce some of the new features in Beta1, as follows:
new features in. NET 4.0 Course (3): Introduction to the new features of. NET 4.0 Beta1 Interop (Level 200)
lecturer: Zhang Yi, Ju Yongtai
Introduction to the course:. NET 4.0 BETA1 is a major improvement in interop, an interoperability feature, primarily to help develope
1 ifMrhiggieismean = NO; if (Mrhiggieismean) { NSLog (@ "confirmed:he is super mean");}2 if ElseBOOL Mrhiggieismean = [Mrhiggie Areyoumean]; if (Mrhiggieismean) { NSLog (@ "confirmed:he is super mean");} Else { NSLog (@ "No, actually he ' s reallynice");}3 If-else If-elseNSNumber *meannessscale =[Mrhiggie Meannessscale];if([Meannessscale Intvalue] 4) {NSLog (@"Mr. Higgie is on the nice side");} Else if([Meannessscale Intvalue] 8) {NSLog (@"Mr. Higg
Outdated first-generation php + mysql with ajax technology, provincial/municipal level 3 linkage, no refreshing menu source code, absolutely original
Test address: http://www.mlmm.cn/mypage? Name = ceshi
Test page code:
The code is as follows:
Php + ajax dynamically generated drop-down menu
Absolute OriginalityTest address: http://www.mlmm.cn/mypage? Name = ceshiTest Page code:Copy codeThe Code is as follows:Regionss function code:QUOTE:Copy codeThe Code is as follows: // provincial/municipal level 3 linkage drop-down menu function regionss provincial/municipal/localFunction regionss ($ country = "People's Republic of China "){Global $ db; $ I = 1;$ Text = "$ Result = $ db-> query ("SELECT pro
Recently, I made a project that requires three levels of interaction between provinces, cities, and cities. after reading a lot of information online, I had the following idea and the basic idea of the code: create the select control option dynamically in JS, ajax is used to obtain the province, city, and district information obtained from the SQL database in PHP. the code is a bit long, but many of them are similar. for example, the method for obtaining JS provinces, municipalities, and distric
Outdated first-generation php + mysql with ajax technology, provincial/municipal level 3 linkage, no refreshing menu source code, absolutely original
Test address: http://www.mlmm.cn/mypage? Name = ceshi
Test page code:
The code is as follows:
Php + ajax dynamically generated drop-down menu
This article mainly introduces JSON + Jquery provincial/municipal level-3 linkage related information. For more information, see the following:
If you don't talk much about it, paste the code directly. the specific code is as follows:
Aside figure dialogI have been using the first two elements in my articles and books. The third element is not commonly used. It is mainly used in written text.AsideThe aside element represents the description, prompt, sidebar, reference, and additional comments, that is, content outside the main line. For example, in developerWorks articles, you will often see the sidebar written in the form of tables. For details, see the developerWorks sidebar written in code
$ (pattern) | sort-U ')
Localver = $ (subst $ (space), $ (string )/$ (Patsubst "%", %, $ (CONFIG_LOCALVERSION )))
# If CONFIG_LOCALVERSION_AUTO is set scripts/setlocalversion is called# And if the SCM is know a tag from the SCM is appended.# The appended tag is determined by the SCM used.## Currently, only git is supported.# Other SCMs can edit scripts/setlocalversion and add the appropriate# Checks as needed.Ifdef CONFIG_LOCALVERSION_AUTO_ Localver-auto = $ (shell $ (CONFIG_SHELL )/$ (Srctree)
There are many methods on the Internet. I use plug-ins here.
1. Download the plug-in
Http://www.yiiframework.com/extension/wdjquerycity/
2. Put it under protected/extensions and rename it WDjQuerycity.
3. Description field
In this plug-in, JS already contains regional data, so we do not need to create regional source data in the data inventory;
From the demo, we can see that
'Province '=> 'province', // database Field province 'city' => 'city', // d
Absolute Originality
Test address: http://www.mlmm.cn/mypage? Name = ceshi
Test Page code:Copy codeThe Code is as follows:
Regionss function code:QUOTE:Copy codeThe Code is as follows: // provincial/municipal level 3 linkage drop-down menu function regionss provincial/municipal/localFunction regionss ($ country = "People's Republic of China "){Global $ db; $ I = 1;$ Text = "
$ Result = $ db-> query ("SELE
metadata page:
Figure 22
Click data flow path between lookup transformation and the ole db destination:
Figure 23
They are exactly the same! The no match output of lookup transformation directly copies the lookup transformation's input. If no match is found, the data will be directly transmitted to the next data stream. After all the operations are completed, the interface is as follows:
Figure 24
Test it. If you see the following result, it means it is successful:
Figure 25
Let's run it on
Razor View, master page
Still not much to say, directly on the code
Here's the point.
$.widget.bridge (' UIButton ', $.ui.button);
var _url = $.geturlparam ("cid");
$ (". Sidebar-menu li a"). each (function () {//Reserved menu open Status
var _id = $ (this). Data ("id");
if (_id = = _url) {
$ (this). Parent (). Parent (): Show ();
}
});
$ (". Sidebar-menu li a"). Click (function () {
$ (this). AddClass ("");
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.