0
A
回答
2
1)你必須改變這一點:
$("p").velocity({ width: 50px }, 1000);
在此:
$("p").velocity({ width: "50px" }, 1000);
2)你正在使用github的資源。但是這些資源不是以* .js文件的形式加載,而是以純文本的形式加載(MIME類型爲text/plain而不是text/javascript)。所以,你必須改變這一點。 這是我在JSBin上的示例http://jsbin.com/fatihopipe/1/edit?html,css,js,output
0
你必須在寬度值附近加引號,否則你的語法錯誤,所以什麼都不會發生。你還需要確保你的代碼等待DOM就可以了:
$(function() {
$("p").velocity({ width: "50px" }, 1000);
});
相關問題
- 1. 在JSBIN上製作ajax工作
- 2. Getting storageVolume在JavaScript中工作
- 3. Velocity.js不透明不能正常工作
- 4. Hello World在JSBin上不起作用
- 5. jQuery slideToggle不適用於joomla,但在jsbin上工作
- 6. 切換按鈕在JSbin上工作,但不在燒瓶服務器上
- 7. velocity.js序列轉換
- 8. Getting vine thumbnail
- 9. Velocity.js的緩動功能無法正常工作
- 10. 鼠標移動不在服務器上循環 - 但在jsbin中工作
- 11. getting org.apache.jasper.JasperException:java.lang.NullPointerException
- 12. Getting noClassDefFoundError
- 13. 與Knockout.js簡單的Flickr應用程序不工作(JSBin準備)
- 14. 爲什麼{{#if isDirty}}與Ember Model無法正常工作? (與JSBin)
- 15. 爲什麼Font Awesome不能在JSbin中工作?
- 16. HTML/Javascript代碼在JSbin中工作,但不是codepen,plunker或jsfiddle
- 17. velocity.js:$沒有定義
- 18. Mediarecorder infolister getting 895
- 19. xtaskcreate-getting error
- 20. 當代碼在本地託管時,Bootstrap Popover無法工作,但在jsbin上工作
- 21. mapView:viewForOverlay:not getting called
- 22. Getting target = _blank與Codeigniter中錨點的圖像一起工作
- 23. 商店定位器無法正常工作.Getting GeoServiceWrapperException異常
- 24. MGTwitterEngine getting feeds - iPhone
- 25. Getting onBeUnUnload使用setTimeout
- 26. Velocity.js的性能很低
- 27. cells.InnerHtml not getting correct way
- 28. Colliding Pendulums Getting Stuck
- 29. Keep Getting ActivityNotFoundException
- 30. Getting LinkedIn Profile Picture
您是否注意到JavaScript選項卡底部的所有這些紅色錯誤? – Pointy 2014-12-18 23:07:50
他們不一致 - 所以我不知道發生了什麼事情。 – Nabha 2015-01-05 00:32:10