亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

move is not defiened

下面是我的引入:

<link?>
<link?rel="stylesheet"?href="./css/index.css">
<script?src="https://cdn.bootcss.com/jquery/3.3.1/jquery.js"></script>
<script?src="https://cdn.bootcss.com/fullPage.js/2.9.7/jquery.fullpage.min.js"></script>
<script?src="./js/move.js"></script>
<script?src="./js/index.js"></script>

然后js代碼:

afterLoad:?function(link,?index)?{
??if?(index?===?2)?{
????move('.section2').set('margin-left',?'400px').end()
??}
},

這里會報錯

Uncaught ReferenceError: move is not defined

? ? at jQuery.fn.init.afterLoad (index.js:8)

? ? at ro (jquery.fullpage.js:1579)

? ? at jquery.fullpage.js:1464

afterLoad @ index.js:8

ro @ jquery.fullpage.js:1579

(anonymous) @ jquery.fullpage.js:1464

setTimeout (async)

(anonymous) @ jquery.fullpage.js:1463

so @ jquery.fullpage.js:1438

Ye @ jquery.fullpage.js:394

Ze @ jquery.fullpage.js:1079

io @ jquery.fullpage.js:1252

不知道是什么原因。

正在回答

1 回答

可能是move.js 路徑沒有引用對 ,或者你那個js 沒有寫對 ,要先new 一個 fullpage 對象

?var myFullpage = new fullpage('#fullpage', {

? ? ? ?anchors: ['firstPage', 'secondPage', '3rdPage'],

? ? ? ?

? ? ? ?navigation: true,



? ? ??

? ? ? ??

? ? ? ??



? ?



? ?});


0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消
FullPage.js全屏滾動插件
  • 參與學習       43810    人
  • 解答問題       217    個

基于jQuery的全屏滾動效果插件,讓翻頁顯得格外的高端大氣上檔次

進入課程

move is not defiened

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號