无法让JavaScript在Android上的React-Native WebView中运行:
<View style={[styles.flex]}>
<WebView
style={[styles.flex]}
source={{uri: 'http://partners.zeew.eu/'}}
javaScriptEnabled={true}
/>
</View>
答案 0 :(得分:0)
尝试在真正的Android设备上运行。
我不确定是否还需要 javaScriptEnabled 。
@Entity
@Table(name="items")
@Inheritance(strategy=InheritanceType.TABLE_PER_CLASS)
public class Item
{
@Id
@GenericGenerator(name="itemIdGen" , strategy="increment")
@GeneratedValue(generator="itemIdGen")
@Column(name = "itemid", nullable=false)
private long id;
@Column(name="itemname")
private String itemName;
@ManyToOne
@JoinColumn(name = "cartid", nullable=false)
@JsonBackReference
private Cart cart;
/*...*/
}
@Entity
@Table(name="carts")
public class Cart
{
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name = "cartid", nullable=false)
private long id;
@Column(name="items")
@OneToMany(mappedBy = "cart")
@JsonManagedReference
private Set<Item> items;
/*..*/
}
&#13;