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

鍍金池/ 問(wèn)答/ HTML問(wèn)答
兔囡囡 回答

PC端的網(wǎng)站頁(yè)面,通常來(lái)說(shuō)“不可能”直接轉(zhuǎn)成完美移動(dòng)端頁(yè)面。或許你可以把地址放上來(lái),讓大家給你估個(gè)價(jià),“友好”地幫你轉(zhuǎn)成移動(dòng)端頁(yè)面。

舊顏 回答

1.有兩次alert,我覺(jué)得應(yīng)該是你的代碼執(zhí)行了兩次,如果你的init重復(fù)執(zhí)行是會(huì)在element上重復(fù)綁定事件的
2.第二個(gè)問(wèn)題,你的寫(xiě)法不對(duì),第二個(gè)參數(shù)是個(gè)選擇器,而不是個(gè)元素

clipboard.png

clipboard.png

呆萌傻 回答

主要是 https://packagecontrol.io/cha... 這個(gè)被墻了 下載不下來(lái)導(dǎo)致的錯(cuò)誤,把下載鏈接改為國(guó)內(nèi)的

# Preferences > Package Settings > Package Control > Settings - User
# 添加
"channels":
    [
        "http://cst.stu.126.net/u/json/cms/channel_v3.json",
        //"https://packagecontrol.io/channel_v3.json",
        //"https://web.archive.org/web/20160103232808/https://packagecontrol.io/channel_v3.json",
        //"https://gist.githubusercontent.com/nick1m/660ed046a096dae0b0ab/raw/e6e9e23a0bb48b44537f61025fbc359f8d586eb4/channel_v3.json"
    ],
柚稚 回答
Even on platforms where native scrolling is good enough, iScroll adds
features that wouldn't be possible otherwise. Specifically:

Granular control over the scroll position, even during momentum. You
can always get and set the x,y coordinates of the scroller. Animation
can be customized with user defined easing functions (bounce, elastic,
back, ...). You can easily hook to a plethora of custom events
(onBeforeScrollStart, onScrollStart, onScroll, onScrollEnd, flick,
...). Out of the box multi-platform support. From older Android
devices to the latest iPhone, from Chrome to Internet Explorer.

簡(jiǎn)單說(shuō)就是,iscroll具有:

  1. 細(xì)粒度控制,可以實(shí)時(shí)獲取x,y坐標(biāo)。
  2. 可以定制多種動(dòng)畫(huà)模型
  3. 有許多好用的鉤子,例如onScrollStart...
  4. 跨平臺(tái)性。

此外,iscroll會(huì)根據(jù)設(shè)備和瀏覽器的不同,選擇性能最佳的方式進(jìn)行模擬滾動(dòng)。

孤慣 回答

如果在String str=new String("abc");之前常量池已經(jīng)存在abc,那可以直接使用ldc指令直接引用,如果沒(méi)有會(huì)創(chuàng)建。查看常量池可以使用javap -v命令
圖片描述

或者使用jclasslib工具查看
圖片描述

陌璃 回答

...是對(duì)象擴(kuò)展符
第二種寫(xiě)法應(yīng)該這樣更直觀一些

return Object.assign({}, state, { counterCaption: ++state.counterCaption })
安于心 回答

1.聲明提升,所以var bar和后面的函數(shù)定義就是5都被提升了
2.提升之后繼續(xù)執(zhí)行,bar被賦值為4的函數(shù)體,所以5的被覆蓋

陪妳哭 回答

直接用video標(biāo)簽加載給定的url,給vidoe注冊(cè)load事件

糖豆豆 回答

我也不知道為什么,它自己又好了,可能是其他原因

囍槑 回答

$(this).parent().next().next().children("input").val()

吢涼 回答

仔細(xì)看了文檔:通過(guò)props屬性修改

<el-cascader
  :options="options2"
  @active-item-change="handleItemChange"
  :props="props"
></el-cascader>


props: {
          value: 'label',
          children: 'cities'
        }
離魂曲 回答

:殺毒解決了問(wèn)題,把知乎的回答搬過(guò)來(lái),希望對(duì)你們也有用...

試了多種方法,‘刪除Code目錄’、‘管理員運(yùn)行’、‘重啟’、‘修改為git Bash為cmd’、‘執(zhí)行restart win..什么鬼命令’等都沒(méi)生效。

最后點(diǎn)擊了電腦管家的殺毒...

修復(fù)了一個(gè)什么鬼的風(fēng)險(xiǎn)(沒(méi)記?。崾拘枰貑?,重啟后就沒(méi)問(wèn)題了...

總之,如果你也沒(méi)有別的辦法,殺個(gè)毒試試。

風(fēng)畔 回答

首次執(zhí)行 wx.getLocation 小程序?qū)⒆詣?dòng)調(diào)啟如下 dialog:

clipboard.png

無(wú)論用戶(hù)選擇“確定”或是“取消”,再次進(jìn)入均不會(huì)被詢(xún)問(wèn)是否開(kāi)啟定位(調(diào)用 100 次 wx.getLocation 也無(wú)濟(jì)于事)。除非用戶(hù)手動(dòng)清理微信緩存、更新微信、切換賬號(hào)...

可通過(guò) wx.openSetting 再次請(qǐng)求用戶(hù)開(kāi)啟授權(quán):

clipboard.png

深記你 回答

問(wèn)題解決了,iframe設(shè)置允許就可以了

To continue to use permissions from iframes on your website...
This deprecation is expected to ship in Chrome M64 (around January 2018). At that time, if a cross-origin iframe attempts to use permission without the feature being explicitly allowed, a console warning will be logged and the feature will fail in a similar way as it would if a user had denied a permission prompt.

If you are a developer of a website which uses cross-origin iframes and you want those iframes to continue to be able to request/use one of the above features, the page that embeds the iframe will need to be changed. The simplest way to do that is to modify the <iframe> tag to include an allow attribute which specifies the name of the permission. For example, to enable geolocation and mic/camera for an iframe, the following would be specified:

<iframe src="https://example.com" allow="geolocation; microphone; camera"></iframe>

Valid values for allow include:
geolocation
microphone
camera
midi
encrypted-media
Note that if the iframe which is using the permission has the same origin as the top level page, then no changes have to be made.

參考:https://sites.google.com/a/ch...

使勁操 回答

坑了兩天終于還是靠自己找到了問(wèn)題的答案和vue、i-view、webpack打包都沒(méi)啥關(guān)系,實(shí)際問(wèn)題出在了index.html這個(gè)入口文件上,在vue-cli的index.html里面第一行<!DOCTYPE html>就是問(wèn)題的關(guān)鍵所在,有了這一行,html 會(huì)按照w3c標(biāo)準(zhǔn)模式 document.compatMode:CSS1Compat 來(lái)渲染,否則就會(huì)是噩夢(mèng)的開(kāi)始,document.compatMode:BackCompat,怪異模式,瀏覽器使用自己的怪異模式解析渲染頁(yè)面,導(dǎo)致出現(xiàn)上文描述的問(wèn)題。
為什么會(huì)出現(xiàn)上傳cdn發(fā)布后得到的效果與開(kāi)發(fā)環(huán)境不一致,就是因?yàn)閟erver端在集成cdn的js時(shí)使用的index.html里面不包含<!DOCTYPE html>,從而導(dǎo)致了上述一系列問(wèn)題。
從css作用域、編譯打包配置、cdn上傳腳本、cdn服務(wù)器、瀏覽器字體兼容一步一步查到這里,感慨平時(shí)最容易忽略的才是問(wèn)題的關(guān)鍵~

不舍棄 回答

debugger時(shí),console當(dāng)前作用域是確實(shí)是函數(shù)內(nèi)部的局部作用域(也是斷點(diǎn)處右鍵evaluate in console可行的原因),因此可以訪問(wèn)name。debugger通過(guò)后,console作用域是全局的,此時(shí)name是window.name瀏覽器自帶的屬性。如果把name改成其他的,就會(huì)報(bào)錯(cuò)了。

報(bào)錯(cuò)是跨域,解決下跨域問(wèn)題就好了,
默認(rèn)發(fā)送是options???你是用哪個(gè)插件發(fā)送,看下插件文檔就知道了

毀憶 回答

說(shuō)你沒(méi)有安裝webpack,全局安裝一下

npm i webpack -g

這句話的意思是在全局的node_modules里安裝webpack,一般我們把一些與項(xiàng)目無(wú)關(guān)的工具型的包,如webpack,gulp等一些包安裝到全局的node_modules里,把和本項(xiàng)目有關(guān)的npm包,在項(xiàng)目的package.json所在路徑下

npm i

把這些包安裝到項(xiàng)目目錄下的node_modules