我正在开发一款应该在iOS和Android上运行的PhoneGap应用程序.我的文件夹结构如下所示:
+-+-[app folder] | +-[android] (contains Eclipse workspace and project files) | +-[iOS] (contains XCode project files) | +-[www] (contains all html, js, css etc. files for the actual app)
很容易引用XCode项目中的www文件夹,一切正常.
但是,在Eclipse中创建指向www文件夹的链接无法正常工作:我使用"导入 - >文件系统"在现有资源文件夹下创建链接,一切似乎都正常.但是在构建步骤期间,文件不会被复制到apk.
知道我做错了什么吗?
我在一个带有一些验证的表单中有一个输入字段.它就像一个魅力.
它基本上看起来像这样:
<input
class="form-control"
type="number"
ng-model="zipcode"
ng-minlength="5"
ng-maxlength="5"
id="zipcode"
name="zipcode"
required
>
Run Code Online (Sandbox Code Playgroud)
一个工作的plunkr在这里:http://plnkr.co/edit/H0h59kG75T5MGE9cAhSo?p=preview
但现在我也想对每一次输入变化作出反应 - 无论是否有效.因此,例如,如果输入字段包含"123",则它无效,并且该值不会传输到我的模型 - 没关系.但我仍然希望获得对Web服务进行一些中间请求的价值.
有任何想法吗?