riotjs

    0熱度

    1回答

    我正在使用基於標籤的路由RiotJS this.on('route', function() {...})偉大的工程,但如何趕上導航? this.on('unmount', function() {...})不會被解僱。

    0熱度

    1回答

    我的Riot.js observable的工作方式如下。 在我的「全球頭」標籤riot.store防暴全球範圍內觀察到的被更新(用戶輸入的輸入領域的一個新的高度),然後觀察的觸發器「update_dims」: save_height() { riot.store.cardHeight = this.refs.input_card_height.value riot.store.

    0熱度

    1回答

    有什麼方法可以選擇當前標籤作爲DOM元素而不使用id屬性? 我現在在做的是; function addAttr(n,v){ var ta = document.getElementById(opts.id); ta.setAttribute(n,v); } 我正在尋找一些像這樣的直接方式; function addAttr(n,v){ var ta = docu

    0熱度

    1回答

    我想在加載div時使用css或JQuery應用動畫。 的div得到加載是這樣的: <div> <blog_topic_title each="{item , i in data.blogTopicsArr}" index={i} id={item.article_id} topic={item}></blog_topic_title> </div> 數據: this.data.bl

    1熱度

    2回答

    這裏醜化JavaScript是我的WebPack配置: var path = require('path'); var webpack = require('webpack'); var CompressionPlugin = require("compression-webpack-plugin"); const UglifyJSPlugin = require('uglifyjs-web

    0熱度

    1回答

    我有一個奇怪的情況,我不知道要解決。將標籤安裝在一次性基礎上可以正常工作。然而,當我安裝一個標籤的多個副本以這種方式: HTML: <div class="o-container o-container--medium"> <div class="o-grid o-grid--small-full o-grid--medium-full o-grid--large-full">

    0熱度

    1回答

    讓我們假設我們有一個防暴SPA這樣的: 的index.html: <my-tag></my-tag> <script type="riot/tag" src="my-tag.riot"></script> <script> //OK we need a compile() wrapper to access all tag instances var tags; riot.compile

    0熱度

    3回答

    我看過很多類似的問題,但仍然難以完成。 Try-d observable-s,但搞亂了某處並且無法完成。新仍然 riotjs在子標籤,我有,將資料列表的功能: <make-list> ...lots of html... <script> var piclist = []; --after first function run this list has data ....

    0熱度

    1回答

    儘管我知道我可以使用「event.target」添加一些事件來更新我的一些變量,但在更改某些分數時如何更新平均值,給出下面的例子? <my-tag> <virtual each="{ criterias }"> <label for="{ name }">{ name }:</label> <input type="number" min="0" max="10"

    0熱度

    1回答

    我確實在全球安裝了暴亂和騷亂。我已經從命令行測試了兩者。事實上,我有另一個項目,暴動正在觀看和正常編譯。 這是一個的WebPack設置,這是錯誤: ERROR in ./src/index.js Module not found: Error: Can't resolve 'riot' in 'c:\Users\...\www\riot\src' @ ./src/index.js 3:11-