我已经构建了一个使用条纹checkout html表单元素的应用程序。它似乎在Android(cordova)和浏览器上运行良好。
在ios cordova上,弹出窗口暗淡效果发生了5秒,然后恢复正常(没有弹出窗口打开),在safari上,结帐表单在另一个标签上打开,而不是弹出窗口。
此外,表单是自定义的,但即使是基本表单也不起作用。
请帮忙!
答案 0 :(得分:3)
我在ios上遇到了同样的问题。 需要在config.xml中添加两行
package edu.stanford.nlp.examples;
import edu.stanford.nlp.ling.*;
import edu.stanford.nlp.pipeline.*;
import edu.stanford.nlp.trees.*;
import java.util.*;
public class FindSAndSBARInTreeExample {
public static void findSAndSBAR(Tree tree) {
for (Tree subtree : tree.getChildrenAsList()) {
if (subtree.label().value().equals("S") || subtree.label().value().equals("SBAR")) {
System.out.println("---");
System.out.println(subtree.yieldWords());
}
findSAndSBAR(subtree);
}
}
public static void main(String[] args) {
// set up pipeline properties
Properties props = new Properties();
props.setProperty("annotators", "tokenize,ssplit,pos,lemma,ner,parse");
// use faster shift reduce parser
props.setProperty("parse.model", "edu/stanford/nlp/models/srparser/englishSR.ser.gz");
props.setProperty("parse.maxlen", "100");
// set up Stanford CoreNLP pipeline
StanfordCoreNLP pipeline = new StanfordCoreNLP(props);
// build annotation for a review
Annotation annotation =
new Annotation(
"A Bristol hospital that retained the hearts of 300 children who died in " +
"complex operations behaved in a \"cavalier fashion\" towards the parents");
// annotate
pipeline.annotate(annotation);
// get tree
Tree tree =
annotation.get(CoreAnnotations.SentencesAnnotation.class).get(0).get(TreeCoreAnnotations.TreeAnnotation.class);
System.out.println(tree);
// find S and SBAR
findSAndSBAR(tree);
}
}
答案 1 :(得分:0)
我遇到了同样的错误,我通过将此行添加到" mobile-config.js"档案:
App.accessRule('https://*.stripe.com/*', { type: 'navigation' });
答案 2 :(得分:0)
我必须在 config.xml
中添加这两个:
<allow-navigation href="https://*.stripe.com/*" />
<allow-navigation href="https://*.stripe.network/*" />