在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問答/ HTML問答
憶往昔 回答

個(gè)人感覺是這樣的
方法一:
當(dāng)?shù)搅说?個(gè)的時(shí)候direction變成vertical變成豎向的
第四個(gè)也是
到了第5個(gè)或者是第六個(gè)的時(shí)候在變成horizontal變成橫向的
方法二:
或者是到了第二個(gè)要切換第三個(gè)的時(shí)候

var i=0 //當(dāng)3頁滾動(dòng)到底部的時(shí)候變成1
var mySwiper = new Swiper('.swiper-container',{
  on: {
    slideChangeTransitionStart: function(){
         if(this.activeIndex==3 && i==0){
             alert('看完之后再回去');
             mySwiper.slideTo(2);
         }
    },
  },
})
冷眸 回答

你的 a 和 b 的值,應(yīng)該在每次點(diǎn)擊按鈕的時(shí)候去獲取,否則每次拿到的都只是 caculateGUI() 執(zhí)行時(shí)的那一次獲得的值。


比如在 jButton1 的事件監(jiān)聽器中:

jButton1.addActionListener(new ActionListener() {
    @Override
    public void actionPerformed(ActionEvent e) {
        int a = Integer.parseInt(textField1.getText());
        int b = Integer.parseInt(textField2.getText());
        
        jTextArea.setText(String.valueOf(a + b));
    }
});
別傷我 回答

behavior 屬性只有IE兼容吧? 應(yīng)該要盡量避免使用

小曖昧 回答

sideEffects 是說模塊內(nèi)有沒有立即執(zhí)行的代碼, 此類代碼通常會(huì)產(chǎn)生副作用. 比如:

// a.js 文件

// 副作用, 在 import a 時(shí)發(fā)生
document.body.appendChild(document.createElement('div')); 

// 導(dǎo)出的模塊
export default function foo() {};

通過 sideEffects 標(biāo)記, 可以通知 webpack 使用一種更簡(jiǎn)便高效的方式來實(shí)現(xiàn)代碼裁剪.

舊言 回答

application/x-www-form-urlencoded改成application/json,你得告訴服務(wù)器數(shù)據(jù)是json格式的

憶往昔 回答
  1. 按需引入 iview https://www.iviewui.com/docs/...

  2. 按需引入 echarts https://github.com/ywwhack/ba...

最后建議,把這些需要按需加載的模塊放到統(tǒng)一放到一個(gè)文件里,后面好維護(hù)

裸橙 回答

使用<i [attr.class]="icon"></i>的形式顯示,這個(gè)icon就是從后臺(tái)取過來的小圖標(biāo)的class類名

放開她 回答

你不要騙我!開發(fā)工具NAN,安卓和ios都是null

clipboard.png

愛礙唉 回答

為什么要多加一個(gè)用于篩選的呢,直接在第一個(gè)對(duì)象列表中加標(biāo)志不就好了,

const router = [
    {
        path: '/hello',
        icon: 'hammer',
        name: 'hello',
        title: '你好',
        children: [
            { path: 'index', title: '你好', name: 'hello_index' },
            { path: 'index1', title: '你好1', name: 'hello_index1' }
        ]
    },
    {
        path: '/hello1',
        icon: 'hammer',
        name: 'hello1',
        title: '你好',
        children: [
            { path: 'index2', title: '你好2', name: 'hello_index2',meta: {noshow:true} },
            { path: 'index3', title: '你好3', name: 'hello_index3' ,meta: {noshow:true}},
            { path: 'index4', title: '你好3', name: 'hello_index4' }
        ]
    },
    {
        path: '/hello2',
        icon: 'hammer',
        name: 'hello2',
        title: '你好',
        meta: {noshow:true},
        children: [
            { path: 'index4', title: '你好4', name: 'hello_index4' },
            { path: 'index5', title: '你好5', name: 'hello_index5' }
        ]
    }
]

在運(yùn)行時(shí)判斷一下meta里的noshow是true,就不顯示不就好了

誮惜顏 回答
let map = item => {
    var data = {};
    Object.keys(item['data']).forEach(key => data[key] = item['data'][key]);
    // data['children'] = (item['children'] || []).map(map);
    // 才發(fā)現(xiàn)你目標(biāo)數(shù)據(jù)結(jié)構(gòu)里要保留 null,改一下。
    data['children'] = item['children'] ? item['children'].map(map) : null;
    return data;
}

let resArr = arr.map(map);

測(cè)試了一下應(yīng)該可以。

乖乖噠 回答

這個(gè)要理解JavaEE的架構(gòu).
java文件都是編譯到/WEB-INF/classes下的.
你這樣寫普通的java項(xiàng)目也會(huì)報(bào)錯(cuò)的,因?yàn)槭蔷幾g的bin目錄下的.
這個(gè)代碼給你參考下:

public class Index extends HttpServlet{
    private static final long serialVersionUID = 1L;
    int count=0;
    
    @Override
    public void init(ServletConfig config) throws ServletException {
        
        ServletContext context = config.getServletContext();
        //獲取classes路徑
        String path = context.getRealPath("/WEB-INF/classes");
        //保存classes路徑
        WebOption.setClassPath(path.replaceAll("\\\\", "/"));
        
        //設(shè)置日志類
        FileUtil fileDao=new FileUtil(CommUtil.classFile("/conf/log.properties"));
        LogUtil.init(fileDao.easyRead());
        
        LogUtil.println(1, this.getClass(), path);
        
        fileDao=new FileUtil(CommUtil.classFile("/conf/connect.properties"));
        DataManager.initDataSource(fileDao.hardRead());
    }
}
    /**
     * 獲取src目錄下文件,不用帶前面的net.ztw
     * @param file 例:"/conf/connect.properties"
     * @return
     */
    public static String classFile(String file){
        return WebOption.getClassPath()+WebOption.packing+file;
    }
/**
 * 整個(gè)項(xiàng)目固定配置參數(shù)
 * @author Administrator
 *
 */
public class WebOption {
    /**
     * 項(xiàng)目字符集編碼
     */
    public static final String charset="UTF-8";
    /**
     * 項(xiàng)目總包名
     */
    public static final String packing="/net/ztw";
//....
}
    <servlet>
        <servlet-name>indexServlet</servlet-name>
        <servlet-class>net.ztw.servlet.Index</servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
        <servlet-name>indexServlet</servlet-name>
        <url-pattern>/index.java</url-pattern>
    </servlet-mapping>
互擼娃 回答

你確定你是一排四個(gè)一共四排的話就很簡(jiǎn)單。問題是你得首先說清楚你這個(gè)布局一排4個(gè)是否會(huì)變動(dòng),最后我建議用table寫,tr td p:nth-child(n)什么的了解一下,寫你這個(gè)應(yīng)該還不錯(cuò)

懷中人 回答

增加一個(gè)head,來定義。如
{
head:{id:xxx}, //這個(gè)id是唯一值,可以用自增的整數(shù)就可以
data:{} //你的數(shù)據(jù)
}

爆扎 回答

2種方法 一種在代碼里加debugger,還有一種就是設(shè)置斷點(diǎn)

笨笨噠 回答

問題出在SelectOptions組件的

componentWillReceiveProps(nextProps) {
    // 問題出在這里
    // 嘗試調(diào)用父組件傳來的回調(diào)函數(shù)去設(shè)置父組件的狀態(tài)
    if (nextProps.active) {
      nextProps.onSelectedHandler(nextProps.style)
    }
  }

優(yōu)化調(diào)用onSelectedHandler時(shí)機(jī)