鍍金池/ 問答/ HTML問答
硬扛 回答

不按tab鍵啊,enter鍵
圖片描述

顯示這個,按enter鍵就好了

陪妳哭 回答

寫一個非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>
離殤 回答

外部是不能訪問到 , 點擊了X 按鈕,還是取消。 點擊 X 或者取消按鈕,都由一個方法 handAction(action) 這個處理了, 這個方法并沒把event傳給callback

幼梔 回答

不知道問題有沒有解決?
那我就給個方案,定義一個container組件,定義一個input property options
options的結(jié)構(gòu)如下:

{
    id: "container",
    children: [
      {
        selector: "component1",
        options: {}
      },
      {
        selector: "component2",
        options: {}
      }
      ...
    ]
}

所有希望動態(tài)生成的組件放到options.children里面
然后使用*ngFor遍歷options.children, 通過selector來匹配對應的component

<div>
    <ng-container *ngFor="let opt of options.children">
        <ng-container *ngIf="opt && opt.selector && opt.options">
            <component1 *ngIf="opt.selector === 'component1'"></component1>
            <component2 *ngIf="opt.selector === 'component2'"></component2>
        </ng-container>
    </ng-container>
</div>

如果覺得有幫助請采納~

孤巷 回答

看下Internet選項那里,代理服務(wù)器的設(shè)置是不是有腳本,如果有的話取消掉再試試看。如果不是這里的問題可能就該考慮下全盤查殺了。。

溫衫 回答

關(guān)于meta,文檔上很詳細。
meta 部分
主要放一些業(yè)務(wù)邏輯字段吧

壞脾滊 回答

一樓正解,但是如果你硬是要改變的話,可以這樣寫

td {
  height: 40px !important
}

原理是important的優(yōu)先級是最高的

陌上花 回答

我最近也在練手小程序,也是滴滴他們家的產(chǎn)品,仿的青桔單車,也是遇到了和你一樣的問題,map組件遮蔽box-shadow陰影,折騰了好幾天嘗試了各種方式不得其解,最后決定獲取到青桔單車的wxapkg文件進行反解包,結(jié)果在image中發(fā)現(xiàn)了這樣兩個文件:圖片描述

一切都明白了,就是使用cover-image 將陰影圖片定位上去的

有點壞 回答

504 是網(wǎng)關(guān)問題 你前端hold不住的 去你的后臺

別硬撐 回答

在vuex 或者 全局域 加一個 鎖。

這里用全局域來做演示比較方便。實際環(huán)境中最好使用 vuex

window.tipLock = false;
service.interceptors.response.use(
  response =>{
    
    const res = response.data;
    const code = parseInt(res.code);
    var errTip = '未知錯誤';
    switch(code){
      case 20000:errTip = '';break;
      case 20003:errTip = "用戶未登錄";break;
      
      default: 
      
      break;
    }

    if(errTip){
      if(!window.tipLock){
          window.tipLock = true;
          alert(errTip + '!');
          window.tipLock = false; //這句如果是第三方的alert 則寫在回調(diào)中
      }
      if(code == 20003){
        window.location.href = "/login"
      }
      return Promise.reject(new Error(errTip));
    }

    return response;
  } ,
  error => {
    return Promise.reject(error);//處理服務(wù)器異常錯誤
  }
)
下墜 回答

不要滾動條?你超出了怎么可能沒有?唯一就是超出不顯示滾動條,鼠標移上去才顯示?不行的話就用其他框架,例如layui的后臺框架就不錯,他的table很強大。

下墜 回答

undefined不是 understand嗎?
如果是 undefined

var page= $(#addli option:selected).val();
console.log(page)

之間加個判斷

if(page){
page = 1
}

賤人曾 回答

把 loading=true,$this.addClass('loading').text("Loading"); 放到if (href != undefined) 之后

 $('div#post-read-more a').click( function() {
        if(loading)return
        $this = $(this);
        var href = $this.attr("href"); //獲取下一頁的鏈接地址
        if (href != undefined) { //如果地址存在
            loading=true
            $this.addClass('loading').text("Loading"); //給a標簽加載一個loading的class屬性,可以用來添加一些加載效果
            $.ajax( { //發(fā)起ajax請求

PS:我覺得你這個例子用button不是更合適,用data-url存下一頁的地址,你用a標簽感覺就是為了存?zhèn)€url,要阻止默認的跳轉(zhuǎn)事件,還要控制能不能點擊,相比之下,button合適多了,“沒有了”的時候?qū)utton設(shè)置成disabled,data-url存?zhèn)€下一頁的地址,妥妥的,沒有歧義

舊螢火 回答

可能的原因
1、請求的接口無法訪問
2、返回的地址信息無法訪問,比如 403

如果還是無法解決,還可以嘗試
1、重啟微信 IDE
2、將 IDE 的基礎(chǔ)庫版本降低一個版本,或者提高一個版本

拽很帥 回答

$(".save_btn_v2").trigger("click");?