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

鍍金池/ 問答
情未了 回答

試試下面幾種,看看方案行不行
1、使用vue的keep-alive
2、路由切換顯示的頁面的那一級route-view不要包含要緩存的組件

舊城人 回答

angular2以后就沒有用過了,下面的說明可以參考一下:

1:解決上面的修改請求中出現(xiàn)的跨源錯(cuò)誤:我使用的是springboot 2.*添加了一個(gè)跨域配置,如果使用HTTP.OPTION請求返回200說明配置成功了

@Configuration
public class AppConfiguration {
    @Bean
    public FilterRegistrationBean corsFilter() {
        UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
        CorsConfiguration config = new CorsConfiguration();
        config.setAllowCredentials(false);
        config.addAllowedOrigin("*");
        config.addAllowedHeader("*");
        config.addAllowedMethod("*");
        source.registerCorsConfiguration("/**", config);
        FilterRegistrationBean bean = new FilterRegistrationBean(new CorsFilter(source));
        bean.setOrder(0);
        return bean;
    }
}

2和3. 太復(fù)雜的還是用post或者遵循rest,如果一定要用get發(fā)送一個(gè)對象,需要用JSON轉(zhuǎn)化成字符串,但是真的不夠優(yōu)雅。

陌南塵 回答

`
var PSV = new PhotoSphereViewer({

container: photosphere,
panorama: 'image',
size: {
  width: window.innerWidth,
  height: window.innerHeight
},
autoload: true,
allow_scroll_to_zoom: false,
markers: [{
  // 多邊形標(biāo)記
  id: 'polygon',
  polygon_px: [3184, 794, 3268, 841, 3367, 1194, 3327, 1307, 3065, 1221, 3097, 847],
  svgStyle: {
    fill: 'rgba(200, 0, 0, 0.2)',
    stroke: 'rgba(200, 0, 50, 0.8)',
    'stroke-width': '2px'
  },
  tooltip: {
    content: 'A dynamic polygon marker',
    position: 'right bottom'
  }
}],
onready: function(){
  PSV.toggleDeviceOrientation()
}

})
`
這樣應(yīng)該可以,但是在安卓機(jī)上效果很差

風(fēng)畔 回答

1:根據(jù)查詢字段,添加合適的索引
2:在有效使用索引的情況下,查出a表的數(shù)據(jù),然后再根據(jù)a表查出的數(shù)據(jù)去b表中批量獲取數(shù)據(jù),如果a查出的數(shù)據(jù)量很多,可以分批批量去查。

巷尾 回答

export function getSystemDB () {
return new Promise((resolve, reject) => {

axios.get(API_HOST + '/channel/getChannelRecordNum', '')
  .then(response => {
    resolve(response.data)
  })
  .catch((error) => {
    reject(error)
  })

})
}

安于心 回答

http://api.jquery.com/val/ 官方文檔中有如下描述信息

When the first element in the collection is a select-multiple (i.e., a select element with the multiple attribute set), .val() returns an array containing the value of each selected option. As of jQuery 3.0, if no options are selected, it returns an empty array; prior to jQuery 3.0, it returns null.

因此下面的代碼可以拿到選中的值

<select id="elem" multiple="multiple">
    <option>...</option>
    ...
</select>
var values = $('#elem').val();
深記你 回答
^(?=[^_]*_?[^_]*$)[\da-zA-Z_]{2,32}$
^(?!.*_.*_)[\da-zA-Z_]{2,32}$

如果你用的語言,\w不匹配中文的話,可以這么寫

^(?=[^_]*_?[^_]*$)\w{2,32}$
^(?!.*_.*_)\w{2,32}$
筱饞貓 回答

你可以看下你項(xiàng)目的編碼集時(shí)什么,還有指定maven 編譯時(shí)的編碼,maven默認(rèn)是gbk編譯

下墜 回答

col-xs-12表示當(dāng)屏幕寬度小于768px時(shí),加該class的容器寬度跟屏幕寬度一樣
具體參考:
圖片描述

https://v3.bootcss.com/css/

舊顏 回答

%[0-9] 是一組字符的集合。比如 %[0-9] 表示會(huì)一直讀取 0 到 9 的字符,直到出現(xiàn)不是 0 到 9 的字符為止。

舉個(gè)例子 %c%c.%[0-9]E%d 對于:

+1.23400E-03

是這樣的:

  1. 使用 %c 讀入字符 +
  2. 使用 %c 讀入字符 1
  3. 使用 . 讀入字符 .
  4. 使用 %[0-9] 讀入字符 23400
  5. 使用 E 讀入字符 E
  6. 使用 %d 讀入字符 03
伐木累 回答
link->next=NULL;
node=link->next;

這兩行執(zhí)行過之后并沒有讓link->next指向node,只是把node設(shè)置為空罷了,你應(yīng)該在for循環(huán)后把link->next指向鏈表的第一個(gè)節(jié)點(diǎn)

吢丕 回答
func MaxMin(position [][]float64) (max, min [2]float64) { // 改為數(shù)組解決

    for k, v := range position {
        if k == 0 {
            max = [2]float64{
                position[k][0],
                position[k][1],
            }
            min = [2]float64{
                position[k][0],
                position[k][1],
            }
            continue
        }
        if v[0] > max[0] {
            max[0] = v[0]
        }
        if v[1] > max[1] {
            max[1] = v[1]
        }
        if v[0] < min[0] {
            min[0] = v[0]
        }
        if v[1] < min[1] {
            min[1] = v[1]
        }
        fmt.Println(v)
    }
    return
}
蝶戀花 回答

legend選項(xiàng)的textStyle里面修改標(biāo)題的樣式:

legend: {
    data: ['Forest', 'Steppe', 'Desert', 'Wetland'],
    textStyle: {
        color: 'red'
    }
}