vue.js

    0熱度

    1回答

    我有以下代碼,但沒有任何反應。 Crafty.e('2D, Canvas, Color, Mouse') .attr({x: 10, y: 10, w: 40, h: 40}) .color('orange') .bind('Click', function(e){ alert('clicked', MouseEvent); cons

    0熱度

    3回答

    對於接收到的響應,我有init數組ArtificialInsemination [],但它沒有顯示或加載表中的記錄。當我點擊按鈕時,它調用函數viewRecords併成功發送HTTP請求,但不加載到表中。 <div id="ArtificialInsemination" class="container"> <button v-on:click="viewRecords">View R

    -3熱度

    1回答

    iview的官方文檔大多是中文。 此鏈接iview Installation包含英文代碼,但運行代碼時,模式選項 - 「取消」以中文顯示。 有沒有辦法解決這個問題,我的意思是把它轉換成英文? 我試圖按照從Github issue此鏈接,但它是的NodeJS。 我想讓它在沒有NodeJS的情況下工作。

    0熱度

    1回答

    如何在此表格行中獲取選定的項目。我想當我點擊行時,它給了我,然後我可以使用它。有沒有一種方法,我可以做一個非常簡單的方法,沒有太多的修改。那麼我可以通過愛可信發送thecowwid我的API進行刪除 <div id="ArtificialInsemination" class="container"> <button v-on:click="viewRecords">View Reco

    0熱度

    1回答

    我在學習Vue,無法理解一件事。我一直得到這個錯誤: 屬性或方法「item」沒有在實例上定義,但在渲染過程中被引用。通過初始化屬性,確保此屬性在數據選項或基於類的組件中處於反應狀態。參見:https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties。 很顯然,我閱讀了文章並思考了我的代碼,但由於我使用了Vue的pu

    0熱度

    1回答

    我使用V-具有自定義組件 Vue.component('lineitem', { template: '#lineitem-template', props: { item: { required: false, default: null }, }, computed: { local_line_ite

    0熱度

    1回答

    遍歷的項目清單這裏是我的VUE例如: new Vue({ el: '#app', data: { showPerson: true, persons: [ {id: 1, name: 'Alex'}, {id: 2, name: 'Bob'}, {id: 3, name: 'Chris'}

    0熱度

    1回答

    我嘗試了VueJS,目的是逐步更新jQuery項目,但我遇到了通過父組件中的數據傳遞的子組件中的道具問題。 我父組件 // parent_component.js var parentData = {}; var parentComponent = Vue.component('parentComponent', { data: function() { return {

    1熱度

    2回答

    我傳遞一個道具給我的意見,但是當我在控制檯打印結果它發送給我未定義,但在視圖中打印我的ID,因爲未定義我不能做請求/諮詢型這是代碼: export default { props: ['idVideo'], data:() => ({ videos: [] }), created() { //do something after crea

    0熱度

    1回答

    我正在嘗試使用較大尺寸的Vue js modal example。我製作了「模態容器」類,寬度爲500px,填充30px,最大寬度爲80%。出於某種原因,包含容器類的「模態蒙版」類在設置爲100%寬度時不會調整爲低於560像素。這裏發生了什麼? 說得很簡單:我想要一個更大的模態,並且我希望它以最小寬度適合頁面。 <template id="modal-template"> <transi