- 浏览: 48050 次
- 性别:
- 来自: 福州
最新评论
文章列表
JS对象定义:
var jsObj = (function(){
var obj = {};
var func0 = function(){
};
return {
func1 : function(_prop){
obj.prop = _prop;
},
func2 : function(){
func0();
}
};
})();
外部调用JS:
jsOb ...
通过
$.dialog({
id: "ai",
title: title,
lock: true,
width: width+'px',
height: height,
content: 'url:'+url
});方法打开窗口后,想在打开的子窗口里调用父窗口的方法,用parent是取不到的,只能用frameElement.api.opener才能取到。
$.dialog({
id: "ai",
title: title,
lock: true,
width: width+'px',
height: height,
...
1.信任所有证书类
package com.asiainfo.frame.utils.https;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
import javax.net.ssl.X509TrustManager;
public class MyAllTrustManager implements X509TrustManager {
public void checkClientTrusted(X509Certi ...
1.loading.gif
2.div层(放在body最开头)
<!-- loading begin -->
<div id="cover" style="position:absolute; left:0; top:0; width:100%; height:100%; z-index:9998; background-color:#fff; display:none; filter:alpha(opacity=45); opacity:0.45;"></div>
<div id="loa ...
1.代码结构(web部分)
静态文件放在META-INF>resources下,jsp放在META-INF>resources>WEB-INF>views下
2.mvc配置
<mvc:annotation-driven /> --开启注释
<mvc:default-servlet-handler /> --处理静态文件
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
& ...
if(isNew){
$('#newstop-wrapper').append(html);
topSwiper = new Swiper('#newstop', {
pagination : '.swiper-pagination',
loop : true,
autoplay : 5000,
preventClicks : false,
preventLinksPropagation : true,
width : window.innerWidth,
autoplayDisableOnInteraction ...
1.编写pom.xml
<?xml version="1.0"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
& ...