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

鍍金池/ 問答
離人歸 回答

可以使用 v-model.number 修飾符將用戶輸入轉(zhuǎn)化為數(shù)字 但是這個無法阻止用戶輸入非數(shù)字
也可以 <el-input type="number"/> 這個就只能輸入數(shù)字了 (包括小數(shù))

筱饞貓 回答

點開network,看看返回的內(nèi)容是不是js.

乖乖噠 回答

這個要理解JavaEE的架構(gòu).
java文件都是編譯到/WEB-INF/classes下的.
你這樣寫普通的java項目也會報錯的,因為是編譯的bin目錄下的.
這個代碼給你參考下:

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;
    }
/**
 * 整個項目固定配置參數(shù)
 * @author Administrator
 *
 */
public class WebOption {
    /**
     * 項目字符集編碼
     */
    public static final String charset="UTF-8";
    /**
     * 項目總包名
     */
    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>
陪妳哭 回答

寫一個非flex版的

<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>Document</title>
    <style>
        *{box-sizing: border-box;margin: 0;padding: 0;}
        html,body{height:100%;width:100;}
        .box{
            width: 100%;
            height: 100%;
            border: 1px solid red;
        }
        .left{
            width:200px;
            height:100%;
            background: #f00;
            float: left;
        }
        .right{
            width: calc(100% - 200px);
            height:100%;
            background: #0f0;
            padding: 200px 0;
            position: relative;
            float: right;
        }
        .top,.bottom{
            position: absolute;
            background:#00f;
            height:200px;
            width: 100%;
        }
        .top{top:0;}
        .bottom{bottom:0;}
        .mid{width:100%;height:100%}
    </style>
</head>
<body>
    <div class="box">
        <div class="left"></div>
        <div class="right">
            <div class="top"></div>
            <div class="mid"></div>
            <div class="bottom"></div>
        </div>
    </div>
</body>
</html>
尛曖昧 回答

exportscommonjs規(guī)范的模塊,也就是node遵循的規(guī)范。
而原生js模塊是沒有module.exportsexportsrequire的,使用importexport

// constants.js 模塊
export const A = 1;
export const B = 3;
export const C = 4;

// test1.js 模塊
import * as constants from './constants';
console.log(constants.A); // 1
console.log(constants.B); // 3

可以看看阮一峰的這篇Module語法

壞脾滊 回答

ps里可以自由放大縮小,而且個別的渲染可能會和輸出內(nèi)容有一定差別,干活的時候不要以ps編輯窗口里的內(nèi)容為準(zhǔn),要以ps輸出的圖片為準(zhǔn)(瀏覽器一般有圖片比較插件,可以把圖片平鋪到網(wǎng)頁底層比較像素準(zhǔn)度,用來參考更合適些)。

忘了我 回答

也不太關(guān)乎壓縮的問題,很明顯主要還是服務(wù)器的問題。

深記你 回答

圖片描述

這里應(yīng)該要選擇一下保存的時候,不然光設(shè)置charset沒用的

挽歌 回答

代碼發(fā)出來看看

失魂人 回答

好像只有圖形化界面的linux系統(tǒng)才能使用,因為他會調(diào)用系統(tǒng)的圖形化API。

選擇 回答

你想問啥沒太懂,不過你報錯的地方this.size沒定義吧 而且computed計算屬性是基于響應(yīng)式依賴進行緩存

雨蝶 回答

css3的transform屬性可以做到

青黛色 回答

可以參考一下微信對于@的實現(xiàn)。
當(dāng)你@A的時候,其實會生成一張顯示 @A 的圖片

浪婳 回答

你這個問題本身就提得有些問題,且不說限制有沒有成功,就說你第二張截圖中要么是快捷圖標(biāo),要么是文件夾,而<input type="file" name="xx" accept="image/png,image/gif">只限制文件類型。你第一次打開的文件目錄中可能剛好有圖片文件,而第二次打開的是桌面,也許并沒有圖片在其中,其它不符合的文件在windows系統(tǒng)中會自動隱藏掉,而在Mac中是禁用變灰掉。

詆毀你 回答

找了一些內(nèi)容來:

3.14內(nèi)核新增了一個內(nèi)存信息MemAvailable , 當(dāng)調(diào)用free命令時可以顯示為available
之前沒留意過

[root@VM_167_46_centos etc]# free -h
                         total         used             free      shared     buff/cache      available
Mem:           993M        253M        334M         39M               405M             556M
Swap:           2.0G          82M             1.9G

我們知道used + free + buff 基本等于 total

  • used是被使用的
  • free是完全沒有被使用的
  • shared是被程序之間可以(已經(jīng)被)共享使用的
  • buffers是指用來給塊設(shè)備做的緩沖大小,它只記錄文件系統(tǒng)的metadata以及 tracking in-flight pages
  • cached是用來給文件做緩沖

也就是 buffers是用來存儲目錄里面有什么內(nèi)容,權(quán)限等等。而cached直接用來緩存我們打開的文件
available到底是什么

Many load balancing and workload placing programs check /proc/meminfo to estimate how much free memory is available. They generally do this by adding up "free" and "cached", which was fine ten years ago, but is pretty much guaranteed to be wrong today.
It is wrong because Cached includes memory that is not freeable as page cache, for example shared memory segments, tmpfs, and ramfs, and it does not include reclaimable slab memory, which can take up a large fraction of system memory on mostly idle systems with lots of files.Currently, the amount of memory that is available for a new workload,without pushing the system into swap, can be estimated from MemFree, Active(file), Inactive(file), and SReclaimable, as well as the "low"watermarks from /proc/zoneinfo.However, this may change in the future, and user space really should not be expected to know kernel internals to come up with an estimate for the amount of free memory.It is more convenient to provide such an estimate in /proc/meminfo. If things change in the future, we only have to change it in one place.

也就是說available才是你的"可用內(nèi)存" , 而不是像過去那樣簡單的把free和buffer加起來

available 小于 free+buffer 是一定的了