问题描述
如标题所示,我正在使用 ionic
构建项目,我无法复制/粘贴输入 iOS 10
上的$ c>字段。根据问题,将这些属性应用于 css
问题应该解决:
As the title suggests, I am building a project with ionic
and I am not able to copy/paste in the input
fields on iOS 10
. According to this question, by applying these properties to the css
the issue should be solved:
input {
user-select: auto !important;
}
但不幸的是它仍然无效。正如参考文献所建议的那样,它表示可能是由<$ c引起的$ c> $ ionicLoading ,但我没有在我的控制器中使用它。
but unluckily it is still not working. As also suggested by this reference, it says that it may be caused by $ionicLoading
, but I am not using it inside my controller.
你知道如何解决这个问题吗?在此先感谢您的回复!
Do you know how to solve this issue? Thanks in advance for your replies!
推荐答案
我无法理解您的问题。
但是如果你想让它真正起作用,你可以尝试一下。
But if you want it to be really working, you can try it.
安装cordova-plugin-clipboard
Install cordova-plugin-clipboard
var text =Hello World!;
var text = "Hello World!";
cordova.plugins.clipboard.copy(text);
cordova.plugins.clipboard.copy(text);
cordova.plugins.clipboard.paste(function(text){alert(text);});
cordova.plugins.clipboard.paste(function (text) { alert(text); });
这篇关于ionic - 在iOS 10的输入字段中复制/粘贴不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!