我用Visual Studio C#2010 Express进行了一次复制,我在项目属性中设置了我的图标 - > application - > ressources ...
像这样
但是当我尝试启动我的应用程序时,我需要将我的图标复制到应用程序的同一文件夹中
我怎么能嵌入它?
我有一个用于生成令牌的自定义服务,在这个服务中我需要使用MD5功能,MD5功能在模块中 angular-md5
这是我的服务代码,角度模块generate_token
使用的函数md5.createhash()
但是我得到了错误:TypeError: Cannot read property 'createHash' of undefined
我想我做错了但我看不清楚
angular.module('app.services', ['angular-md5'])
.service('Auth', [function($scope, md5){
var self = this;
this.rand_alphanumeric = function() {
var subsets = [];
subsets[0] = [48, 57]; // ascii digits
subsets[1] = [65, 90]; // ascii uppercase English letters
subsets[2] = [97, 122]; // ascii lowercase English letters
// random choice between lowercase, uppercase, and digits
s = Math.floor(Math.random() * 2) + 0
ascii_code = Math.floor(Math.random() * (subsets[s][1] - subsets[s][0] + …
Run Code Online (Sandbox Code Playgroud)