如何使文本能够在离子应用程序中复制

时间:2017-08-11 11:34:02

标签: ios iphone ionic-framework

我想制作一个能够在离子应用程序中复制的文本。我试过这个How to allow copy and paste from an ionic webview?解决方案。但它对我不起作用。请给我一个解决方案。

1 个答案:

答案 0 :(得分:0)

在.css文件中尝试以下代码。

def plot_learning_curve(estimator, title, X, y, ylim=None, cv=None,
                    n_jobs=1):

train_sizes = [10, 500, 1000, 2500, 5000]

plt.figure()
plt.title(title)
print(ylim)
if ylim is not None:
    plt.ylim(*ylim)
plt.xlabel("Training examples")
plt.ylabel("Score")
train_sizes, train_scores, test_scores = learning_curve(
    estimator, X, y, cv=cv, n_jobs=n_jobs, train_sizes=train_sizes)
train_scores_mean = np.mean(train_scores, axis=1)
train_scores_std = np.std(train_scores, axis=1)
test_scores_mean = np.mean(test_scores, axis=1)
test_scores_std = np.std(test_scores, axis=1)
plt.grid()


print(train_sizes)
plt.fill_between(train_sizes, train_scores_mean - train_scores_std,
                 train_scores_mean + train_scores_std, alpha=0.1,
                 color="r")
plt.fill_between(train_sizes, test_scores_mean - test_scores_std,
                 test_scores_mean + test_scores_std, alpha=0.1, color="g")
plt.plot(train_sizes, train_scores_mean, 'o-', color="r",
         label="Training score")
plt.plot(train_sizes, test_scores_mean, 'o-', color="g",
         label="Cross-validation score")

plt.legend(loc="best")
return plt