<view class="container">
<input class='title' name='title' placeholder='{{titlePlaceholder}}' value='{{title}}' ></input>
<textarea class='content' name='content' placeholder='{{contentPlaceholder}}' value='{{content}}'></textarea>
<view class='images' wx:for='{{images}}' wx:key="{{index}}" >
<view wx:if="{{item.index == -1}}">
<image class='image' src='{{item.url}}' bindtap='chooseImage' data-index="{{item.index}}"></image>
</view>
<view wx:else>
<image class='image' src='{{item.url}}' bindtap='delImagePlaceholder' data-index="{{index}}"></image>
</view>
</view>
</view>
這是我的自定義組件,如何在原生的form中獲得,title和content的值?【HTML 51】修改域名自動(dòng)去掉www,微信小程序教程。
本文來自微信小程序開發(fā) http://html51.com,轉(zhuǎn)載請(qǐng)保留。
網(wǎng)友回復(fù):
你好,和這個(gè)問題相同:
https://developers.weixin.qq.com/blogdetail?action=get_post_info&docid=4cecfc648e14f3f2cf5443e1423b900f&token=785406488&lang=zh_CN
我們會(huì)盡快提供解決方案。
愛盈利-運(yùn)營(yíng)小咖秀(www.jza6.com) 始終堅(jiān)持研究分享移動(dòng)互聯(lián)網(wǎng)App運(yùn)營(yíng)推廣經(jīng)驗(yàn)、策略、全案、渠道等純干貨知識(shí)內(nèi)容;是廣大App運(yùn)營(yíng)從業(yè)者的知識(shí)啟蒙、成長(zhǎng)指導(dǎo)、進(jìn)階學(xué)習(xí)的集聚平臺(tái);
想了解更多移動(dòng)互聯(lián)網(wǎng)干貨知識(shí),請(qǐng)關(guān)注微信公眾號(hào)運(yùn)營(yíng)小咖秀(ID: yunyingshow)