function myFunction(x) { console.log(x.isLetter) } myFunction("s")
当我在.qml文件中运行这个文件时,它会告诉我"isLetter“是未定义的。为什么?
http://qt-project.org/doc/qt-5/qchar.html#isLetter
发布于 2014-04-20 10:02:01
您不能直接在JavaScript var上使用Qt方法来实现您想要的纯js实现:
x.match(/[a-z]/i);
https://askubuntu.com/questions/451188
相似问题