在我的Ionic项目中,在app.js中,我编写了一些代码但是当我在index.html文件中使用控制器时它没有用。
如何让它发挥作用?
app.js:
cuckoo = document.createElement("div");
cuckoo.innerHTML = '<div id="cuckoo-child" style="width:100%;height:40px;background-color:#00ff00;position:fixed;left:0;bottom:0;z-index:32000!important""> \
Two gentlemen entering bottom bar... \
</div>';
$('body').appendChild(cuckoo);
的index.html:
var app= angular.module('starter', ['ionic']);
app.controller('ListCtrl',function($scope)
{
$scope.notes =
[
{
title:'First note'
description:'This is my first note'
},
{
title:'Second Note'
description:'second note'
}
];
});
答案 0 :(得分:2)
您在main:
pushq %rbp
pushq %rbx
subq $8, %rsp
call getxy()
call std::chrono::_V2::system_clock::now()
movq %rax, %rbx
movl $1000000, %eax
.L2:
subl $1, %eax
jne .L2
call std::chrono::_V2::system_clock::now()
subq %rbx, %rax
movq %rax, %rbp
call std::chrono::_V2::system_clock::now()
movq %rax, %rbx
call std::chrono::_V2::system_clock::now()
subq %rbx, %rax
movq %rbp, %rdi
movq %rax, %rbx
call void out<long>(long)
movq %rbx, %rdi
call void out<long>(long)
addq $8, %rsp
xorl %eax, %eax
popq %rbx
popq %rbp
ret
中忘记了逗号。在JSON
中,请再试一次:
controller