你的target寫錯(cuò)了哦。如樓上所說
html:
<div class="outerbox">
<div class="lf"></div>
<div class="rg"></div>
</div>
css:
.outerbox{
width: 500px;
height: auto;
margin: 0 auto;
display: flex;
flex-flow: row nowrap;
justify-content: space-between;
align-content: flex-start;
}
.outerbox div{
width: 100px;
height: 100px;
background: red;
}COPY 我這個(gè)到txt.html 打開試一下。
<head>
<style>
#draggable { width: 800px; height: 500px; }
iframe{ width: 100%; height: 100%;}
</style>
<html>
<body>
<div>
<iframe id="draggable" src="a.html"></iframe>
</div>
<script type="text/javascript">
var reset = false;
function Resize () {
var doc = document.getElementById("draggable").contentDocument || document.frames["draggable"].document;
var Text=doc.getElementById("test");
//修改大小
if (reset == true) {
Text.style.fontSize='100px';
reset = false;
} else {
Text.style.fontSize='12px';
reset = true;
}
};
</script>
<input type="button" onclick="Resize()" value="Resize" />
</body>
</html>
<html>
<html>
<head>
</head>
<body>
<div id="test">test</div>
<body>
</html>
===============上面這個(gè)是一個(gè)a.html======================
上面框架里的內(nèi)容縮放,
下面是整框架的縮放,
<html>
<body>
<div>
<iframe id="draggable" src="http://www.baidu.com"></iframe>
</div>
<script type="text/javascript">
var reset = false;
function Resize () {
var obj = document.getElementById("draggable");
if (reset == true) {
obj.style.height="400px";
obj.style.width="500px";
reset = false;
} else {
obj.style.height="0px";
obj.style.width="0px";
reset = true;
}
};
</script>
<input type="button" onclick="Resize()" value="Resize" />
</body>
</html>
for(var i=0;i<res.length;i++){
console.log(res[i].id)
}
F12 -> Application -> Storage -> Cookies ,選中 Back 鍵可刪。
別用alert,用console.log。alert會(huì)阻塞后面的代碼執(zhí)行
找到問題了,首先運(yùn)行時(shí)瀏覽器有這么個(gè)告警:
[Vue warn]: You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build.
網(wǎng)上搜了一下找到下面的解決辦法:
https://forum.vuejs.org/t/vue...
問題是:
This component use the local registration component as the spinners,
and the local registration component was not be pre-compiled when this
component be released, but your project use the Runtime-only build
version of Vue.js, it does not include the template compiler, the
warning will be thrown when the Vue.js try to render a uncompiled
template.So there has a temporary solution to solve it, just change your Vue.js
version from Runtime-only to Runtime + Compiler, simply to do it in
your webpack configurations:
...
resolve: {
alias: {
'vue$': 'vue/dist/vue.esm.js'
}
}
...
@ThinkCMF 大神提供的手冊(cè)地址,總的來說,看需求咯
它們出現(xiàn)的先后順序mysql -> mysqli -> PDO
| ? | PHP的mysqli擴(kuò)展 | PDO (使用PDO MySQL驅(qū)動(dòng)和MySQL Native驅(qū)動(dòng)) | PHP的mysql擴(kuò)展 |
|---|---|---|---|
| 引入的PHP版本 | 5.0 | 5.0 | 3.0之前 |
| PHP5.x是否包含 | 是 | 是 | 是 |
| MySQL開發(fā)狀態(tài) | 活躍 | 在PHP5.3中活躍 | 僅維護(hù) |
| 在MySQL新項(xiàng)目中的建議使用程度 | 建議 - 首選 | 建議 | 不建議 |
| API的字符集支持 | 是 | 是 | 否 |
| 服務(wù)端prepare語句的支持情況 | 是 | 是 | 否 |
| 客戶端prepare語句的支持情況 | 否 | 是 | 否 |
| 存儲(chǔ)過程支持情況 | 是 | 是 | 否 |
| 多語句執(zhí)行支持情況 | 是 | 大多數(shù) | 否 |
| 是否支持所有MySQL4.1以上功能 | 是 | 大多數(shù) | 否 |
可以。
把 el-form 封裝成一個(gè)自定義組件,比如叫做 CustomForm.vue.
里面設(shè)計(jì)好各個(gè) el-form-item(比如 el-input,el-select 等等),以及你要的 rules。
這樣就可以只寫一次。
各頁面如需使用 el-form,直接引用這個(gè)組件就好,通過 prop 傳入數(shù)據(jù).
node端沒有瀏覽器環(huán)境,所有沒有document,window這些瀏覽器對(duì)象,只有js可以用,你是怎么獲取網(wǎng)頁的 ? http或者fs模塊都可以。
讀取網(wǎng)頁后用正則判斷第一個(gè)img標(biāo)簽,拿到里面的src就可以
你模板的事件綁定語法寫錯(cuò)了,(ngSubmit)里面是沒有ng的,直接(submit)="onSumbit()"這樣就好了
已經(jīng)安裝應(yīng)用的用戶,可以正常使用 ps: 服務(wù)還在的前提下
問題已解決,重啟IDE
沒能聽明白你的意思 只是大概猜了一下 你使用 window.location.protocol + '//' + window.location.host獲取到地址欄的地址 或者你可以使用正則
Javascript中,比如一個(gè)變量a,如果判斷a是不是undefined 不是用: a === "undefined"
而是用typeof a === "undefined"
好多人犯這錯(cuò)誤啊。。
====
感謝樓下提醒,undefined加"" 。。
<!DOCTYPE html>
<html lang="en" ng-app="App">
<head>
<meta charset="UTF-8">
<meta name="fragment" content="!">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="format-detection" content="telephone=no">
<meta name="format-detection" content="address=no">
<title>Title</title>
<script src="https://cdn.bootcss.com/angular.js/1.5.3/angular.js"></script>
</head>
<body ng-controller="Main">
<div>
<input type='radio' value="1" ng-model="sex"> V1
<input type='radio' value="2" ng-model="sex"> V2
</div>
{{sex}}
<div>
<p ng-if="sex==1">p1</p>
<p ng-if="sex==2">p2</p>
</div>
<script>
angular.module('App', []).controller('Main', [
'$scope', function($scope) {
$scope.sex = 1;
}]);
</script>
</body>
</html>
<InputNumber :max="10" :min="1" v-model="value" empty></InputNumber>
add empty attribute
assetsPublishPath: '/m'
onload事件 complete屬性可以認(rèn)定圖片加載完畢
不行可以外面套一層div,對(duì)div居中;
dispaly:cell;vertical-align:middle;
也可以
北大青鳥APTECH成立于1999年。依托北京大學(xué)優(yōu)質(zhì)雄厚的教育資源和背景,秉承“教育改變生活”的發(fā)展理念,致力于培養(yǎng)中國(guó)IT技能型緊缺人才,是大數(shù)據(jù)專業(yè)的國(guó)家
達(dá)內(nèi)教育集團(tuán)成立于2002年,是一家由留學(xué)海歸創(chuàng)辦的高端職業(yè)教育培訓(xùn)機(jī)構(gòu),是中國(guó)一站式人才培養(yǎng)平臺(tái)、一站式人才輸送平臺(tái)。2014年4月3日在美國(guó)成功上市,融資1
北大課工場(chǎng)是北京大學(xué)校辦產(chǎn)業(yè)為響應(yīng)國(guó)家深化產(chǎn)教融合/校企合作的政策,積極推進(jìn)“中國(guó)制造2025”,實(shí)現(xiàn)中華民族偉大復(fù)興的升級(jí)產(chǎn)業(yè)鏈。利用北京大學(xué)優(yōu)質(zhì)教育資源及背
博為峰,中國(guó)職業(yè)人才培訓(xùn)領(lǐng)域的先行者
曾工作于聯(lián)想擔(dān)任系統(tǒng)開發(fā)工程師,曾在博彥科技股份有限公司擔(dān)任項(xiàng)目經(jīng)理從事移動(dòng)互聯(lián)網(wǎng)管理及研發(fā)工作,曾創(chuàng)辦藍(lán)懿科技有限責(zé)任公司從事總經(jīng)理職務(wù)負(fù)責(zé)iOS教學(xué)及管理工作。
浪潮集團(tuán)項(xiàng)目經(jīng)理。精通Java與.NET 技術(shù), 熟練的跨平臺(tái)面向?qū)ο箝_發(fā)經(jīng)驗(yàn),技術(shù)功底深厚。 授課風(fēng)格 授課風(fēng)格清新自然、條理清晰、主次分明、重點(diǎn)難點(diǎn)突出、引人入勝。
精通HTML5和CSS3;Javascript及主流js庫,具有快速界面開發(fā)的能力,對(duì)瀏覽器兼容性、前端性能優(yōu)化等有深入理解。精通網(wǎng)頁制作和網(wǎng)頁游戲開發(fā)。
具有10 年的Java 企業(yè)應(yīng)用開發(fā)經(jīng)驗(yàn)。曾經(jīng)歷任德國(guó)Software AG 技術(shù)顧問,美國(guó)Dachieve 系統(tǒng)架構(gòu)師,美國(guó)AngelEngineers Inc. 系統(tǒng)架構(gòu)師。