起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1772|回复: 1

[处理中3] 双冒号冲突的问题,菜鸟在线等

[复制链接]

1

主题

1

帖子

3

积分

新手上路

Rank: 1

积分
3
QQ
发表于 2018-5-24 21:59:00 | 显示全部楼层 |阅读模式
  <div component="$UI/system/components/justep/output/output" class="x-output" xid="output1" bind-ref='$model.data1.ref("name")' bind-text=" 'hello luobing' + $model.data1.val("name") ">
  </div>

bind-text=" 'hello luobing' + $model.data1.val("name") "中的val("name")和最后一个“存在冲突,如何改,菜鸟等。

全码如下
-----------------------------------------------------------------------------

<?xml version="1.0" encoding="UTF-8"?>

<div xmlns="http://www.w3.org/1999/xhtml" xid="window" class="window" component="$UI/system/components/justep/window/window" design="device:m;">  
  <div component="$UI/system/components/justep/model/model" xid="model">
  <div component="$UI/system/components/justep/data/data" autoLoad="true" xid="data1" idColumn="name">
  <column name="name" type="String" xid="xid1">
  </column>
  <data xid="default1">[{&quot;name&quot;:&quot;&quot;}]</data>
  </div></div>
<input component="$UI/system/components/justep/input/input" class="form-control" xid="input1" bind-ref='$model.data1.ref("name")'></input>
  <div component="$UI/system/components/justep/output/output" class="x-output" xid="output1" bind-ref='$model.data1.ref("name")' bind-text=" 'hello luobing' + $model.data1.val("name") ">
  </div>
  
  </div>
发表于 2018-5-25 10:06:49 | 显示全部楼层
你再 设计器里面写,不要切换到源码去写,引号默认是可以被转译的
,最终应该会生成
bind-text="'hello luobing' + $model.data1.val(&quot;name&quot;) "
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2024-9-26 01:24 , Processed in 0.070027 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表