文档或我有问题.我做了文档所说的所有内容.
当我输入终端时:
$ php vendor/bin/doctrine orm:schema-tool:create
Run Code Online (Sandbox Code Playgroud)
输出是:
No Metadata Classes to process
Run Code Online (Sandbox Code Playgroud)
我读了许多帖子,并谷歌尝试了许多例子,但没有.
http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/tutorials/getting-started.html
出了什么问题.我尝试制作对象,但是当我尝试初始化时,我在控制台中收到此错误:我尝试将所有内容放入document.ready和whitout,但不起作用.在这两种情况下我都有一些错误.对于愚蠢的问题,我很抱歉
ReferenceError: Circle is not defined
var obj = new Circle;
Run Code Online (Sandbox Code Playgroud)
JS
$(function(){
var Circle = {
init: function() {
console.log("Circle initialized");
}
};
});
Run Code Online (Sandbox Code Playgroud)
HTML
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script src="javascript/circle.js"></script>
<script>
$(document).ready(function(){
var obj = new Circle;
obj.init();
})
</script>
</head>
<body>
<div id="test" >TODO write content</div>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
新的更新
$(function(){
window.Circle = {
init: function() {
console.log("Circle initialized");
}
};
window.Circle.init();
});
Run Code Online (Sandbox Code Playgroud)
....
<head>
<script>
window.Circle().init();
</script>
</head>
Run Code Online (Sandbox Code Playgroud) 您好,我对 Codeigniter 语言课程有疑问。
我遵循这个指南:
https://www.codeigniter.com/user_guide/libraries/language.html
我创建测试控制器
我在 app/language/english 中创建 test_lang.php
我在配置文件中设置了英语
我的控制器:
<?php
class Test extends MX_Controller
{
public $data;
function __construct()
{
$this->load->helper('language');
$this->load->lang('test');
}
function index() {
$this->data['title'] = $this->lang->line("test");
$this->load->view('test', $this->data);
}
}
?>
Run Code Online (Sandbox Code Playgroud)
应用程序/语言/英语/test_lang.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
$lang['test'] = 'This form post did not pass our security checks.';
?>
Run Code Online (Sandbox Code Playgroud)
意见 :
<?php
echo $title;
?>
Run Code Online (Sandbox Code Playgroud)
我有空白页。没有结果,一切都无所谓。
我尝试直接在视图中放置echo $this->lang->line("test"); 又什么也没有。
我做错了什么?Any1可以告诉我如何解决这个问题吗?谢谢
我animate在jQuery中的函数有问题.我在本地工作,该函数不会动画我的div元素.
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script>
$(document).ready(function() {
$("button").click(function() {
$("div").animate({left: '250px'});
});
});
</script>
</head>
<body>
<div style="position:absolute"> Animate Box </div>
<button> Start </button>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)