首页 \ 问答 \ 如何将$ index observable“绑定”(存储)到我的observable中?(How to “bind” (store) the $index observable to my observable?)

如何将$ index observable“绑定”(存储)到我的observable中?(How to “bind” (store) the $index observable to my observable?)

我有一个foreach绑定,在我的数据中我有一个名为Level的可观察对象。 我怎么能将$index值存储在我的Level observable中? 我需要它,因为数组转到服务器端脚本,我不能指望订单将在最后保留。

我一直在谷歌搜索一段时间,但还没有找到任何相关的答案


I have a foreach binding, and in my data I have an observable called Level. How could I store the $index value in my Level observable? I would need it because the array goes to a server-side script, and Icannot expect that the order will be preserved at the end.

I've been googling for a while now but haven't found any related answer yet


原文:https://stackoverflow.com/questions/26059618
更新时间:2024-04-21 14:04

相关问答

更多
  • 自动检测模块名称中的某些内容出错了。 很难说是什么,但另一种方法是手动为它提供正确的查找路径作为字符串(例如“package.module:function”)。 如果可以这样做,则可以避免此问题。 Something in the automatic detection of the module name is going wrong. Hard to say what, but the alternative is to manually give it the proper lookup path ...
  • 务必确保正确关闭日食。 (1)首先你需要尝试这个 myeclipse.exe -clean 要么 或者, myeclipse.ini下行添加到顶部附近的myeclipse.ini文件中: -clean (2)如果问题仍然存在,则只需创建一个新工作区,然后导入其中的所有项目文件。 它肯定会工作:) 但如果它还没有解决的话 (3) 你需要重新安装日食 Always make sure that you shut down eclipse properly. (1)First of all you need sh ...
  • MercurialEclipse 更新网站: https : //bitbucket.org/mercurialeclipse/update-site/raw/default/ 安装手册 如下所述(在注释中),名称是MercurialEclipse。 名称HgEclipse是Intland做的一个叉子,后来再次使用MercurialEclipse“并入”,MercurialEclipse在当前站点,Google代码和javaforge.com之间移动。 MercurialEclipse Update sit ...
  • 可以在SWT应用程序中使用Swing组件。 如果JGraph工作完美仍有待测试,我在谷歌上找不到任何积极的结果。 这是Eclipse上有关如何使用Swing组件的文章。 祝你好运。 It is possible to use Swing components in an SWT application. If JGraph works perfectly remains to be tested though, I couldn't find any positive results on google. ...
  • 如果您尝试在eclipse插件项目中使用JDT库,则必须将org.eclipse.jdt.core添加到插件依赖项(在plugin.xml文件中)。 否则,如果您尝试将这些添加到Java应用程序中,则需要将这些添加到构建路径中。 右键单击该项目,然后选择“ 属性”>“构建路径”>“添加外部JAR” 这里只需添加Eclipse插件目录中的jdt库。 If you are trying to use the JDT libraries in an eclipse plugin project, you will ...
  • 是的,你可以如果: 您要使用的插件没有任何外部依赖关系=>它只是一个库插件 你想使用的插件和它的所有依赖项都在你的类路径中 在所有其他情况下没有。 由于许多插件至少使用OSGI / Equinox的核心概念(具有激活器),因此在独立的Java应用程序中使用它们将非常困难。 例如,SWT可以在eclipse之外使用。 Yes you can if: The plugin you want to use doesn't have any external dependencies => it's just a ...
  • 我不确定IMP是否兼容日食伽利略(3.5)。 他们的安装页面提到了eclipse3.2 It is just .metadata crash of eclipse after installed Eclipse IMP

相关文章

更多

最新问答

更多
  • 带有简单redis应用程序的Node.js抛出“未处理的错误”(Node.js with simple redis application throwing 'unhandled error')
  • 高考完可以去做些什么?注意什么?
  • Allauth不会保存其他字段(Allauth will not save additional fields)
  • Flask中的自定义中止映射/异常(Custom abort mapping/exceptions in Flask)
  • sed没有按预期工作,从字符串中间删除特殊字符(sed not working as expected, removing special character from middle of string)
  • 怎么在《我的世界》游戏里面编程
  • .NET可移植可执行文件VS .NET程序集(.NET Portable Executable File VS .NET Assembly)
  • 搜索字符串从视图中键入两个字段的“名字”和“姓氏”组合(Search Strings Typed from View for Two Fields 'First Name' and 'Last Name' Combined)
  • 我可以通过配置切换.Net缓存提供程序(Can I switch out .Net cache provider through configuration)
  • 在鼠标悬停或调整浏览器大小之前,内容不会加载(Content Does Not Load Until Mouse Hover or Resizing Browser)
  • 未捕获的TypeError:auth.get不是函数(Uncaught TypeError: auth.get is not a function)
  • 如何使用变量值创建参数类(How to create a parameter class with variant value)
  • 在std :: deque上并行化std :: replace(Parallelizing std::replace on std::deque)
  • 单元测试返回Connection对象的方法(Unit Test for a method that returns a Connection object)
  • rails:上传图片时ios中的服务器内部错误(rails: server internal error in ios while uploading image)
  • 如何在Android中构建应用程序警报[关闭](How build an application Alarm in Android [closed])
  • 以编程方式连接到Windows Mobile上的蓝牙耳机(Programmatically connect to bluetooth headsets on Windows Mobile)
  • 在两个不同的SharedPreference中编写并获得相同的结果(Writing in two different SharedPreference and getting the same result)
  • CSS修复容器和溢出元素(CSS Fix container and overflow elements)
  • 在'x','y','z'迭代上追加数组(Append array on 'x', 'y', 'z' iteration)
  • 我在哪里可以看到使用c ++源代码的UML方案示例[关闭](Where I can see examples of UML schemes with c++ source [closed])
  • SQL多个连接在与where子句相同的表上(SQL Multiple Joins on same table with where clause)
  • 位字段并集的大小,其成员数多于其大小(Size of bit-field union which has more members than its size)
  • 我安装了熊猫,但它不起作用(I installed pandas but it is not working)
  • Composer - 更改它在env中使用的PHP版本(Composer - Changing the version of PHP it uses in the env)
  • 使用JavaFX和Event获取鼠标位置(Getting a mouse position with JavaFX and Event)
  • 函数调用可以重新排序(Can function calls be reordered)
  • 关于“一对多”关系的NoSQL数据建模(NoSQL Data Modeling about “one to many” relationships)
  • 如何解释SBT错误消息(How to interpret SBT error messages)
  • 调试模式下的Sqlite编译器错误“初始化程序不是常量”(Sqlite compiler errors in Debug mode “initializer is not a constant”)