我试图创建一个登陆页面,其中图片和伴随的标题更新,显示了所有的图像和标题在一个数组的对象(图片和标题)。我认为它需要使用$interval或$timeout。
我的JS将显示一张不更新的图片:
.controller('userCtrl', function ($scope, Auth, $location, $timeout) {
var Picture = Parse.Object.extend("Picture");
var query = new Parse.Query(Picture);
query.find({
下面是我的代码,它从输入字段中的random.txt文件生成随机文本。
<?php
//Path of file
$myFile = "random.txt";
//Read file from array
$lines = file($myFile);
//Get number line of file
$lineTotal = count($lines);
//Remove 1 line (start from 0)
$count = $lineTotal-1;
//Get casual number
$number_casual = rand(0