[英]How can I use javascript and jquery in a PHP bluemix project?
I can't use javascript from index file in my php project in bluemix, neither by external files or <script></script>
. 我无法在bluemix的php项目中使用索引文件中的javascript,也不能通过外部文件或
<script></script>
使用javascript。 Is this normal? 这正常吗? How can I integrate it to use it properly?
我如何集成它以正确使用它?
i have use the hub.jazz.net ide and it add to your code some hints to allow jQuery working. 我已经使用了hub.jazz.net ide,它向您的代码添加了一些提示,以允许jQuery工作。 It creates a .tern-project file with :
它使用以下命令创建一个.tern-project文件:
{
"libs": [
"browser",
"ecma5",
"ecma6"
],
"ecmaVersion": 6,
"plugins": {},
"loadEagerly": []
}
and 和
/*eslint-env jQuery */
before the $
$
之前
Here's my sample app 这是我的示例应用
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.